mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
Don't start browser on restart
This commit is contained in:
parent
ae94b726a7
commit
56b7d3c28d
@ -208,7 +208,7 @@ func main() {
|
|||||||
|
|
||||||
infof("Starting web GUI on http://%s:%d/", hostShow, addr.Port)
|
infof("Starting web GUI on http://%s:%d/", hostShow, addr.Port)
|
||||||
startGUI(cfg.Options.GUIAddress, m)
|
startGUI(cfg.Options.GUIAddress, m)
|
||||||
if cfg.Options.StartBrowser {
|
if cfg.Options.StartBrowser && len(os.Getenv("STRESTART")) == 0 {
|
||||||
openURL(fmt.Sprintf("http://%s:%d", hostOpen, addr.Port))
|
openURL(fmt.Sprintf("http://%s:%d", hostOpen, addr.Port))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user