浏览代码

ft: 代码修改

master
SisMaker 3 年前
父节点
当前提交
87624abda2
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/eWSrv.erl

+ 3
- 3
src/eWSrv.erl 查看文件

@ -18,7 +18,7 @@ stop() ->
application:stop(eWSrv). application:stop(eWSrv).
wSrvName(Port) -> wSrvName(Port) ->
binary_to_atom(<<"$WSrv", (integer_to_binary(Port))/bianry>>).
binary_to_atom(<<"$WSrv", (integer_to_binary(Port))/binary>>).
openSrv(Port, WsOpts) -> openSrv(Port, WsOpts) ->
T1WsOpts = lists:keystore(conMod, 1, WsOpts, {conMod, wsHttp}), T1WsOpts = lists:keystore(conMod, 1, WsOpts, {conMod, wsHttp}),
@ -28,7 +28,7 @@ openSrv(Port, WsOpts) ->
NewTcpOpts = wsUtil:mergeOpts(?DefWsOpts, TcpOpts), NewTcpOpts = wsUtil:mergeOpts(?DefWsOpts, TcpOpts),
LWsOpts = lists:keystore(tcpOpts, 1, T2WsOpts, {tcpOpts, NewTcpOpts}), LWsOpts = lists:keystore(tcpOpts, 1, T2WsOpts, {tcpOpts, NewTcpOpts}),
WSrvName = wSvNrame(Port),
WSrvName = wSrvName(Port),
case ?wsGLV(sslOpts, WsOpts, false) of case ?wsGLV(sslOpts, WsOpts, false) of
false -> false ->
@ -56,7 +56,7 @@ closeSrv(WSrvNameOrPort) ->
WSrvName = WSrvName =
case is_integer(WSrvNameOrPort) of case is_integer(WSrvNameOrPort) of
true -> true ->
wSvNrame(WSrvNameOrPort);
wSrvName(WSrvNameOrPort);
_ -> _ ->
WSrvNameOrPort WSrvNameOrPort
end, end,

正在加载...
取消
保存