Show web GUI address on startup (fixes #27)
This commit is contained in:
10
main.go
10
main.go
@@ -151,8 +151,18 @@ func main() {
|
|||||||
|
|
||||||
// GUI
|
// GUI
|
||||||
if !opts.NoGUI && opts.GUIAddr != "" {
|
if !opts.NoGUI && opts.GUIAddr != "" {
|
||||||
|
host, port, err := net.SplitHostPort(opts.GUIAddr)
|
||||||
|
if err != nil {
|
||||||
|
warnf("Cannot start GUI on %q: %v", opts.GUIAddr, err)
|
||||||
|
} else {
|
||||||
|
if len(host) > 0 {
|
||||||
|
infof("Starting web GUI on http://%s", opts.GUIAddr)
|
||||||
|
} else {
|
||||||
|
infof("Starting web GUI on port %s", port)
|
||||||
|
}
|
||||||
startGUI(opts.GUIAddr, m)
|
startGUI(opts.GUIAddr, m)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Walk the repository and update the local model before establishing any
|
// Walk the repository and update the local model before establishing any
|
||||||
// connections to other nodes.
|
// connections to other nodes.
|
||||||
|
|||||||
Reference in New Issue
Block a user