From 558eabe3147e958afc6980b9a7762954d2bb45cc Mon Sep 17 00:00:00 2001 From: bingtianbaihua Date: Tue, 22 Sep 2020 23:51:11 +0800 Subject: [PATCH] fix comments --- conf/frpc_full.ini | 2 +- models/config/client_common.go | 2 +- utils/net/conn.go | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/conf/frpc_full.ini b/conf/frpc_full.ini index d3fd5fbb..5d397705 100644 --- a/conf/frpc_full.ini +++ b/conf/frpc_full.ini @@ -46,7 +46,7 @@ user = your_name login_fail_exit = true # communication protocol used to connect to server -# now it supports tcp, kcp, websocket and ntlm, default is tcp +# now it supports tcp, kcp and websocket, default is tcp protocol = tcp # if tls_enable is true, frpc will connect frps by tls diff --git a/models/config/client_common.go b/models/config/client_common.go index 1aba9033..505b988f 100644 --- a/models/config/client_common.go +++ b/models/config/client_common.go @@ -100,7 +100,7 @@ type ClientCommonConf struct { // set. Start map[string]struct{} `json:"start"` // Protocol specifies the protocol to use when interacting with the server. - // Valid values are "tcp", "kcp", "ntlm" and "websocket". By default, this value + // Valid values are "tcp", "kcp" and "websocket". By default, this value // is "tcp". Protocol string `json:"protocol"` // TLSEnable specifies whether or not TLS should be used when communicating diff --git a/utils/net/conn.go b/utils/net/conn.go index dbcd3b61..4a122b03 100644 --- a/utils/net/conn.go +++ b/utils/net/conn.go @@ -222,8 +222,6 @@ func ConnectServerByProxy(proxyURL string, protocol string, addr string) (c net. return ConnectServer(protocol, addr) case "websocket": return ConnectWebsocketServer(addr) - case "ntlm": - return gnet.DialTcpByProxy(proxyURL, addr) default: return nil, fmt.Errorf("unsupport protocol: %s", protocol) }