diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 1e576c5af..6841c2b06 100644 --- a/cmd/syncthing/main.go +++ b/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 }