Announce actual port when UPnP is disabled (fixes #657)

This commit is contained in:
Jakob Borg 2014-09-10 08:18:30 +02:00
parent 3a8255bda1
commit 50a4170541

View File

@ -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 {