ref: c00a1fcb7fc6a063725229c267a63b35dbf48d1a
parent: 03a70161047f33b491b300fbbc76f71ff3d34218
author: Scott C Wilson <[email protected]>
date: Fri Jul 17 16:42:09 EDT 2015
Add a check for the setting of watch flag in config file Fixes #1074
--- a/commands/server.go
+++ b/commands/server.go
@@ -71,6 +71,10 @@
viper.Set("Watch", true)
}
+ if viper.GetBool("watch") {
+ serverWatch = true
+ }
+
l, err := net.Listen("tcp", net.JoinHostPort(serverInterface, strconv.Itoa(serverPort)))
if err == nil {
l.Close()