Merge pull request #875 from jettyu/jettyu-websocket

websocket protocol
This commit is contained in:
fatedier authored and GitHub committed 2018-08-06 15:20:09 +08:00
commit 64136a3b3e
5 files changed
+177 -15

No files matched your search

+1 -1
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