Fix config parsing.

This commit is contained in:
notsure2 2023-12-08 09:31:46 +02:00
parent fd63159397
commit 870455200a
1 changed files with 10 additions and 1 deletions

View File

@ -91,7 +91,16 @@ func ssvToJson(ssv string) (ret []byte) {
r = strings.Replace(r, `\;`, `;`, -1)
return r
}
unquoted := []string{"NumConn", "StreamTimeout", "KeepAlive", "UDP", "LoopbackTcpSendBuffer", "LoopbackTcpReceiveBuffer"}
unquoted := []string{
"NumConn",
"StreamTimeout",
"KeepAlive",
"UDP",
"LoopbackTcpSendBuffer",
"LoopbackTcpReceiveBuffer",
"RemoteTcpSendBuffer",
"RemoteTcpReceiveBuffer",
}
lines := strings.Split(unescape(ssv), ";")
ret = []byte("{")
for _, ln := range lines {