Fix keepalive client ssv parsing.

This commit is contained in:
notsure2 2020-04-04 17:34:38 +02:00
parent 35236b27d1
commit 4942988ce7
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func ssvToJson(ssv string) (ret []byte) {
value := sp[1]
// JSON doesn't like quotation marks around int and bool
// 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+`,`)...)
} else {
ret = append(ret, []byte(`"`+key+`":"`+value+`",`)...)