Don't start browser on restart

This commit is contained in:
Jakob Borg 2014-03-09 08:35:53 +01:00
parent ae94b726a7
commit 56b7d3c28d
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func main() {
infof("Starting web GUI on http://%s:%d/", hostShow, addr.Port)
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))
}
}