websocket protocol

This commit is contained in:
FishFish
2018-08-03 19:41:54 +08:00
parent 629f2856b1
commit b8037475ed
5 changed files with 177 additions and 15 deletions

View File

@@ -187,7 +187,7 @@ func UnmarshalClientConfFromIni(defaultCfg *ClientCommonConf, content string) (c
if tmpStr, ok = conf.Get("common", "protocol"); ok {
// Now it only support tcp and kcp.
if tmpStr != "kcp" {
if tmpStr != "kcp" && tmpStr != "websocket" {
tmpStr = "tcp"
}
cfg.Protocol = tmpStr