mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-03 15:23:38 -07:00
update dependencies and fix lint warnings
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user