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
- paralleltest
- maintidx
- ifshort
- unparam
- nakedret
- misspell
# - misspell
- goimports
- goconst
- wastedassign
@ -120,3 +119,4 @@ linters:
- scopelint
- testpackage
- 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
lConn, err := net.ListenUDP("udp", laddr)
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
}
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
// has been specified.
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.
TLSServerName string `ini:"tls_server_name" json:"tls_server_name"`
// 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:
if !ok {
err = frpErr.ErrCtlClosed
xl.Warn("no work connections avaiable, %v", err)
xl.Warn("no work connections available, %v", err)
return
}