Merge pull request #875 from jettyu/jettyu-websocket

websocket protocol
This commit is contained in:
fatedier
2018-08-06 15:20:09 +08:00
committed by GitHub
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