Move proxy errors to proxy/common/errors

This commit is contained in:
V2Ray committed 2015-10-29 23:59:57 +01:00
1 parent ce07ea9769
commit 361a22d74d
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import (
"github.com/v2ray/v2ray-core/common/alloc"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/proxy"
proxyerrors "github.com/v2ray/v2ray-core/proxy/common/errors"
"github.com/v2ray/v2ray-core/transport"
)
@@ -66,7 +66,7 @@ func ReadAuthentication(reader io.Reader) (auth Socks5AuthenticationRequest, aut
auth.version = buffer.Value[0]
if auth.version != socksVersion {
log.Warning("Unknown protocol version %d", auth.version)
err = proxy.InvalidProtocolVersion
err = proxyerrors.InvalidProtocolVersion
return
}