mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Use new StopGlobal on the discovery when external port changes
This commit is contained in:
parent
5f1bf9d9d6
commit
198da910ed
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user