Use new StopGlobal on the discovery when external port changes

This commit is contained in:
Jakob Borg committed 2014-08-14 12:49:41 +02:00
1 parent 5f1bf9d9d6
commit 198da910ed
1 file changed
+1
+1
View File
@@ -633,6 +633,7 @@ func renewUPnP(port int) {
if r != 0 {
externalPort = r
l.Infoln("Updated UPnP port mapping - external port", externalPort)
discoverer.StopGlobal()
discoverer.StartGlobal(cfg.Options.GlobalAnnServer, uint16(r))
continue
}