Add example for getting bandwidth stats

This commit is contained in:
Vladimir Stoilov
2023-06-30 16:56:39 +03:00
parent 95716dbb47
commit 83479acc95
8 changed files with 154 additions and 41 deletions

View File

@@ -104,6 +104,7 @@ func apiAuthenticator(r *http.Request, s *http.Server) (token *api.AuthToken, er
SrcPort: remotePort, // source as in the process we are looking for
Dst: localIP,
DstPort: localPort,
PID: process.UndefinedProcessID,
},
)
if !retry {