fix comments
This commit is contained in:
parent
c6312219b4
commit
558eabe314
@ -46,7 +46,7 @@ user = your_name
|
|||||||
login_fail_exit = true
|
login_fail_exit = true
|
||||||
|
|
||||||
# communication protocol used to connect to server
|
# 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
|
protocol = tcp
|
||||||
|
|
||||||
# if tls_enable is true, frpc will connect frps by tls
|
# if tls_enable is true, frpc will connect frps by tls
|
||||||
|
@ -100,7 +100,7 @@ type ClientCommonConf struct {
|
|||||||
// set.
|
// set.
|
||||||
Start map[string]struct{} `json:"start"`
|
Start map[string]struct{} `json:"start"`
|
||||||
// Protocol specifies the protocol to use when interacting with the server.
|
// 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".
|
// is "tcp".
|
||||||
Protocol string `json:"protocol"`
|
Protocol string `json:"protocol"`
|
||||||
// TLSEnable specifies whether or not TLS should be used when communicating
|
// TLSEnable specifies whether or not TLS should be used when communicating
|
||||||
|
@ -222,8 +222,6 @@ func ConnectServerByProxy(proxyURL string, protocol string, addr string) (c net.
|
|||||||
return ConnectServer(protocol, addr)
|
return ConnectServer(protocol, addr)
|
||||||
case "websocket":
|
case "websocket":
|
||||||
return ConnectWebsocketServer(addr)
|
return ConnectWebsocketServer(addr)
|
||||||
case "ntlm":
|
|
||||||
return gnet.DialTcpByProxy(proxyURL, addr)
|
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unsupport protocol: %s", protocol)
|
return nil, fmt.Errorf("unsupport protocol: %s", protocol)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user