default to "localhost:port" and not "":port

Windows doesn't handle empty addresses the way unix-like OSs do.
This commit is contained in:
Jimmy Zelinskie 2015-10-28 16:29:11 -04:00
parent 7730cd9a16
commit b303f0e9f2
2 changed files with 6 additions and 6 deletions

View file

@ -149,21 +149,21 @@ var DefaultConfig = Config{
},
APIConfig: APIConfig{
ListenAddr: ":6880",
ListenAddr: "localhost:6880",
RequestTimeout: Duration{10 * time.Second},
ReadTimeout: Duration{10 * time.Second},
WriteTimeout: Duration{10 * time.Second},
},
HTTPConfig: HTTPConfig{
ListenAddr: ":6881",
ListenAddr: "localhost:6881",
RequestTimeout: Duration{10 * time.Second},
ReadTimeout: Duration{10 * time.Second},
WriteTimeout: Duration{10 * time.Second},
},
UDPConfig: UDPConfig{
ListenAddr: ":6882",
ListenAddr: "localhost:6882",
},
DriverConfig: DriverConfig{

View file

@ -15,13 +15,13 @@
"respectAF": false,
"clientWhitelistEnabled": false,
"clientWhitelist": ["OP1011"],
"apiListenAddr": ":6880",
"apiListenAddr": "localhost:6880",
"apiRequestTimeout": "4s",
"apiReadTimeout": "4s",
"apiWriteTimeout": "4s",
"apiListenLimit": 0,
"udpListenAddr": ":6881",
"httpListenAddr": ":6881",
"udpListenAddr": "localhost:6881",
"httpListenAddr": "localhost:6881",
"httpRequestTimeout": "4s",
"httpReadTimeout": "4s",
"httpWriteTimeout": "4s",