From 198da910ede665ea67902fbb21efdba00c7e1440 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 14 Aug 2014 12:49:41 +0200 Subject: [PATCH] Use new StopGlobal on the discovery when external port changes --- cmd/syncthing/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/syncthing/main.go b/cmd/syncthing/main.go index 1e576c5a..6841c2b0 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 }