Browse Source

Use new StopGlobal on the discovery when external port changes

Jakob Borg 11 years ago
parent
commit
198da910ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cmd/syncthing/main.go

+ 1 - 0
cmd/syncthing/main.go

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