Archived
Announce actual port when UPnP is disabled (fixes #657)
This commit is contained in:
1 parent
3a8255bda1
commit
50a4170541
1 file changed
+8
@@ -530,6 +530,14 @@ nextRepo:
|
||||
}
|
||||
}
|
||||
|
||||
// The default port we announce, possibly modified by setupUPnP next.
|
||||
|
||||
addr, err := net.ResolveTCPAddr("tcp", cfg.Options.ListenAddress[0])
|
||||
if err != nil {
|
||||
l.Fatalln("Bad listen address:", err)
|
||||
}
|
||||
externalPort = addr.Port
|
||||
|
||||
// UPnP
|
||||
|
||||
if cfg.Options.UPnPEnabled {
|
||||
|
||||
Reference in new issue
Block a user