Fix typos

This commit is contained in:
Dimitris Apostolou
2021-11-12 17:38:06 +02:00
parent e71b88fcaa
commit 197a70c9c4
21 changed files with 29 additions and 29 deletions

View File

@@ -18,7 +18,7 @@ const (
authFailure = uint8(1)
)
// AuthHandler handles socks authenication requests
// AuthHandler handles socks authentication requests
type AuthHandler interface {
Handle(io.Reader, io.Writer) error
Register(uint8, Authenticator)
@@ -43,7 +43,7 @@ func (h *StandardAuthHandler) Register(method uint8, a Authenticator) {
h.authenticators[method] = a
}
// Handle gets the methods from the SOCKS5 client and authenicates with the first supported method
// Handle gets the methods from the SOCKS5 client and authenticates with the first supported method
func (h *StandardAuthHandler) Handle(bufConn io.Reader, conn io.Writer) error {
methods, err := readMethods(bufConn)
if err != nil {

View File

@@ -55,7 +55,7 @@ func (h *StandardRequestHandler) handleConnect(conn io.ReadWriter, req *Request)
addr, err := net.ResolveIPAddr("ip", req.DestAddr.FQDN)
if err != nil {
_ = sendReply(conn, ruleFailure, req.DestAddr)
return fmt.Errorf("unable to resolve host to confirm acceess")
return fmt.Errorf("unable to resolve host to confirm access")
}
req.DestAddr.IP = addr.IP