mirror of https://github.com/cbeuw/Cloak
Fix config parsing of the new buffer values.
This commit is contained in:
parent
55c06a0a58
commit
4efd000bda
|
|
@ -87,7 +87,7 @@ func ssvToJson(ssv string) (ret []byte) {
|
||||||
r = strings.Replace(r, `\;`, `;`, -1)
|
r = strings.Replace(r, `\;`, `;`, -1)
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
unquoted := []string{"NumConn", "StreamTimeout", "KeepAlive", "UDP"}
|
unquoted := []string{"NumConn", "StreamTimeout", "KeepAlive", "UDP", "LoopbackTcpSendBuffer", "LoopbackTcpReceiveBuffer"}
|
||||||
lines := strings.Split(unescape(ssv), ";")
|
lines := strings.Split(unescape(ssv), ";")
|
||||||
ret = []byte("{")
|
ret = []byte("{")
|
||||||
for _, ln := range lines {
|
for _, ln := range lines {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue