mirror of https://github.com/cbeuw/Cloak
Fix config parsing.
This commit is contained in:
parent
fd63159397
commit
870455200a
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue