1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-11 00:06:03 -04:00

rename errors

This commit is contained in:
v2ray
2016-01-30 12:32:38 +01:00
parent f34e253ea3
commit 1e79a3b75a
3 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ import (
var (
ErrorUnsupportedSocksCommand = errors.New("Unsupported socks command.")
UnsupportedAuthMethod = errors.New("Unsupported auth method.")
ErrorUnsupportedAuthMethod = errors.New("Unsupported auth method.")
)
// SocksServer is a SOCKS 5 proxy server
@@ -119,7 +119,7 @@ func (this *SocksServer) handleSocks5(reader *v2net.TimeOutReader, writer io.Wri
return err
}
log.Warning("Socks: client doesn't support allowed any auth methods.")
return UnsupportedAuthMethod
return ErrorUnsupportedAuthMethod
}
authResponse := protocol.NewAuthenticationResponse(expectedAuthMethod)