mirror of https://github.com/cbeuw/Cloak
Fix keepalive client ssv parsing.
This commit is contained in:
parent
35236b27d1
commit
4942988ce7
|
|
@ -73,7 +73,7 @@ func ssvToJson(ssv string) (ret []byte) {
|
||||||
value := sp[1]
|
value := sp[1]
|
||||||
// JSON doesn't like quotation marks around int and bool
|
// JSON doesn't like quotation marks around int and bool
|
||||||
// This is extremely ugly but it's still better than writing a tokeniser
|
// This is extremely ugly but it's still better than writing a tokeniser
|
||||||
if key == "NumConn" || key == "Unordered" || key == "StreamTimeout" {
|
if key == "NumConn" || key == "Unordered" || key == "StreamTimeout" || key == "KeepAlive" {
|
||||||
ret = append(ret, []byte(`"`+key+`":`+value+`,`)...)
|
ret = append(ret, []byte(`"`+key+`":`+value+`,`)...)
|
||||||
} else {
|
} else {
|
||||||
ret = append(ret, []byte(`"`+key+`":"`+value+`",`)...)
|
ret = append(ret, []byte(`"`+key+`":"`+value+`",`)...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue