fixed misspellings

This commit is contained in:
Dzyanis Kuzmenka 2022-03-17 23:16:03 +03:00
parent 74e28788e6
commit 0026a99e2f
4 changed files with 5 additions and 5 deletions

View File

@ -62,10 +62,9 @@ linters:
# TODO: enable one by one # TODO: enable one by one
- paralleltest - paralleltest
- maintidx - maintidx
- ifshort
- unparam - unparam
- nakedret - nakedret
- misspell # - misspell
- goimports - goimports
- goconst - goconst
- wastedassign - wastedassign
@ -120,3 +119,4 @@ linters:
- scopelint - scopelint
- testpackage - testpackage
- wsl - wsl
- ifshort

View File

@ -366,7 +366,7 @@ func (pxy *XTCPProxy) InWorkConn(conn net.Conn, m *msg.StartWorkConn) {
// Listen for clientConn's address and wait for visitor connection // Listen for clientConn's address and wait for visitor connection
lConn, err := net.ListenUDP("udp", laddr) lConn, err := net.ListenUDP("udp", laddr)
if err != nil { if err != nil {
xl.Error("listen on visitorConn's local adress error: %v", err) xl.Error("listen on visitorConn's local address error: %v", err)
return return
} }
defer lConn.Close() defer lConn.Close()

View File

@ -130,7 +130,7 @@ type ClientCommonConf struct {
// It only works when "tls_enable" is valid and tls configuration of server // It only works when "tls_enable" is valid and tls configuration of server
// has been specified. // has been specified.
TLSTrustedCaFile string `ini:"tls_trusted_ca_file" json:"tls_trusted_ca_file"` TLSTrustedCaFile string `ini:"tls_trusted_ca_file" json:"tls_trusted_ca_file"`
// TLSServerName specifices the custom server name of tls certificate. By // TLSServerName specifics the custom server name of tls certificate. By
// default, server name if same to ServerAddr. // default, server name if same to ServerAddr.
TLSServerName string `ini:"tls_server_name" json:"tls_server_name"` TLSServerName string `ini:"tls_server_name" json:"tls_server_name"`
// By default, frpc will connect frps with first custom byte if tls is enabled. // By default, frpc will connect frps with first custom byte if tls is enabled.

View File

@ -258,7 +258,7 @@ func (ctl *Control) GetWorkConn() (workConn net.Conn, err error) {
case workConn, ok = <-ctl.workConnCh: case workConn, ok = <-ctl.workConnCh:
if !ok { if !ok {
err = frpErr.ErrCtlClosed err = frpErr.ErrCtlClosed
xl.Warn("no work connections avaiable, %v", err) xl.Warn("no work connections available, %v", err)
return return
} }