mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 23:50:00 -07:00
add filter_private_ips option to discard private IPs.
Might be used when tracker is behind reverse proxy and one of provided addresses in `real_ip_header` is private/local address. Additional changes: * check if provided address is not multicast/broadcast * configure `http.Server.ReadHeaderTimeout` with `http.ReadTimeout` to mitigate Slowloris * update dependencies * minor docs fixes
This commit is contained in:
@@ -50,7 +50,7 @@ The typical control flow of handling announces, in more detail, is:
|
||||
#### Configuration
|
||||
|
||||
The frontend must be configurable using a single, exported struct. The struct must have YAML annotations. The struct
|
||||
must implement `log.Fielder` to be logged on startup.
|
||||
must implement `zerolog.LogObjectMarshaler` to be logged on startup.
|
||||
|
||||
#### Metrics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user