update dependencies and fix lint warnings

This commit is contained in:
Lawrence, Rendall
2026-02-18 18:12:58 +03:00
parent 36a9022ef4
commit 08686d74b7
18 changed files with 205 additions and 139 deletions
+3 -1
View File
@@ -1,3 +1,4 @@
//nolint:revive
package http
import (
@@ -105,7 +106,8 @@ func parseAnnounce(r *fasthttp.RequestCtx, opts ParseOptions) (*bittorrent.Annou
// Parse the IP address where the client is listening.
request.RequestAddresses = requestedIPs(r, qp, opts)
if err = bittorrent.SanitizeAnnounce(request, opts.MaxNumWant, opts.DefaultNumWant, opts.FilterPrivateIPs); err != nil {
if err = bittorrent.SanitizeAnnounce(request, opts.MaxNumWant, opts.DefaultNumWant,
opts.FilterPrivateIPs); err != nil {
request = nil
}