]> Sergey Matveev's repositories - btrtrc.git/blobdiff - config.go
Add very tentative UPnP NAT traversal
[btrtrc.git] / config.go
index cb597b200c7df7b38b9105891a97dc27a639f45e..a8933abaaaeca943cfe55d98a3ea03d55d2b64aa 100644 (file)
--- a/config.go
+++ b/config.go
@@ -33,7 +33,8 @@ type Config struct {
        // The address to listen for new uTP and TCP bittorrent protocol
        // connections. DHT shares a UDP socket with uTP unless configured
        // otherwise.
-       ListenAddr string `long:"listen-addr" value-name:"HOST:PORT"`
+       ListenAddr              string `long:"listen-addr" value-name:"HOST:PORT"`
+       NoDefaultPortForwarding bool
        // Don't announce to trackers. This only leaves DHT to discover peers.
        DisableTrackers bool `long:"disable-trackers"`
        DisablePEX      bool `long:"disable-pex"`