tracker/udp.go | 2 ++ diff --git a/tracker/udp.go b/tracker/udp.go index 9c9f99c42a568bd5e411eda1a2a9efd81a95d94e..033598e50f5163ab489038f51515c601e8a757c7 100644 --- a/tracker/udp.go +++ b/tracker/udp.go @@ -115,6 +115,7 @@ } // Clearly this limits the request URI to 255 bytes. BEP 41 supports // longer but I'm not fussed. options := append([]byte{optionTypeURLData, byte(len(reqURI))}, []byte(reqURI)...) + vars.Add("udp tracker announces", 1) b, err := c.request(ActionAnnounce, req, options) if err != nil { return @@ -288,6 +289,7 @@ return } c.socket = pproffd.WrapNetConn(c.socket) } + vars.Add("udp tracker connects", 1) b, err := c.request(ActionConnect, nil, nil) if err != nil { return