mirror of
https://github.com/LBRYFoundation/tracker.git
synced 2025-08-23 17:47:29 +00:00
default to "localhost:port" and not "":port
Windows doesn't handle empty addresses the way unix-like OSs do.
This commit is contained in:
parent
7730cd9a16
commit
b303f0e9f2
2 changed files with 6 additions and 6 deletions
|
@ -149,21 +149,21 @@ var DefaultConfig = Config{
|
||||||
},
|
},
|
||||||
|
|
||||||
APIConfig: APIConfig{
|
APIConfig: APIConfig{
|
||||||
ListenAddr: ":6880",
|
ListenAddr: "localhost:6880",
|
||||||
RequestTimeout: Duration{10 * time.Second},
|
RequestTimeout: Duration{10 * time.Second},
|
||||||
ReadTimeout: Duration{10 * time.Second},
|
ReadTimeout: Duration{10 * time.Second},
|
||||||
WriteTimeout: Duration{10 * time.Second},
|
WriteTimeout: Duration{10 * time.Second},
|
||||||
},
|
},
|
||||||
|
|
||||||
HTTPConfig: HTTPConfig{
|
HTTPConfig: HTTPConfig{
|
||||||
ListenAddr: ":6881",
|
ListenAddr: "localhost:6881",
|
||||||
RequestTimeout: Duration{10 * time.Second},
|
RequestTimeout: Duration{10 * time.Second},
|
||||||
ReadTimeout: Duration{10 * time.Second},
|
ReadTimeout: Duration{10 * time.Second},
|
||||||
WriteTimeout: Duration{10 * time.Second},
|
WriteTimeout: Duration{10 * time.Second},
|
||||||
},
|
},
|
||||||
|
|
||||||
UDPConfig: UDPConfig{
|
UDPConfig: UDPConfig{
|
||||||
ListenAddr: ":6882",
|
ListenAddr: "localhost:6882",
|
||||||
},
|
},
|
||||||
|
|
||||||
DriverConfig: DriverConfig{
|
DriverConfig: DriverConfig{
|
||||||
|
|
|
@ -15,13 +15,13 @@
|
||||||
"respectAF": false,
|
"respectAF": false,
|
||||||
"clientWhitelistEnabled": false,
|
"clientWhitelistEnabled": false,
|
||||||
"clientWhitelist": ["OP1011"],
|
"clientWhitelist": ["OP1011"],
|
||||||
"apiListenAddr": ":6880",
|
"apiListenAddr": "localhost:6880",
|
||||||
"apiRequestTimeout": "4s",
|
"apiRequestTimeout": "4s",
|
||||||
"apiReadTimeout": "4s",
|
"apiReadTimeout": "4s",
|
||||||
"apiWriteTimeout": "4s",
|
"apiWriteTimeout": "4s",
|
||||||
"apiListenLimit": 0,
|
"apiListenLimit": 0,
|
||||||
"udpListenAddr": ":6881",
|
"udpListenAddr": "localhost:6881",
|
||||||
"httpListenAddr": ":6881",
|
"httpListenAddr": "localhost:6881",
|
||||||
"httpRequestTimeout": "4s",
|
"httpRequestTimeout": "4s",
|
||||||
"httpReadTimeout": "4s",
|
"httpReadTimeout": "4s",
|
||||||
"httpWriteTimeout": "4s",
|
"httpWriteTimeout": "4s",
|
||||||
|
|
Loading…
Add table
Reference in a new issue