Use new StopGlobal on the discovery when external port changes

This commit is contained in:
Jakob Borg 2014-08-14 12:49:41 +02:00
parent 5f1bf9d9d6
commit 198da910ed

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
}