]> Sergey Matveev's repositories - btrtrc.git/blobdiff - config.go
Expose public IPv4 and IPv6 config options and use them with trackers
[btrtrc.git] / config.go
index 860f6cd19a6d96d2317b9e3d4637e61d31834964..d0f09669d9d4e1ad5ef45ff163cebb46cd1e92a8 100644 (file)
--- a/config.go
+++ b/config.go
@@ -108,6 +108,9 @@ type Config struct {
        // impact of a few bad apples. 4s loses 1% of successful handshakes that
        // are obtained with 60s timeout, and 5% of unsuccessful handshakes.
        HandshakesTimeout time.Duration // default  20 * time.Second
+
+       PublicIp4 net.IP
+       PublicIp6 net.IP
 }
 
 func (cfg *Config) setDefaults() {