From 0026a99e2f2c560bfdecf0284cd881406aa688fe Mon Sep 17 00:00:00 2001 From: Dzyanis Kuzmenka Date: Thu, 17 Mar 2022 23:16:03 +0300 Subject: [PATCH] fixed misspellings --- .golangci.yml | 4 ++-- client/proxy/proxy.go | 2 +- pkg/config/client.go | 2 +- server/control.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 435548d6..f225b9ce 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 diff --git a/client/proxy/proxy.go b/client/proxy/proxy.go index 7f561df0..4c1ec548 100644 --- a/client/proxy/proxy.go +++ b/client/proxy/proxy.go @@ -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() diff --git a/pkg/config/client.go b/pkg/config/client.go index f73ea386..23ac2978 100644 --- a/pkg/config/client.go +++ b/pkg/config/client.go @@ -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. diff --git a/server/control.go b/server/control.go index 321e0f4c..78d42aa6 100644 --- a/server/control.go +++ b/server/control.go @@ -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 }