1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 07:25:19 -05:00

fix destination from addr

This commit is contained in:
v2ray
2016-08-14 23:20:23 +02:00
parent ccf1bf25b6
commit cc92973daf
6 changed files with 14 additions and 15 deletions

View File

@@ -120,7 +120,7 @@ func (this *Server) handleConnection(conn internet.Connection) {
}
log.Access(conn.RemoteAddr(), request.URL, log.AccessAccepted, "")
session := &proxy.SessionInfo{
Source: v2net.TCPDestinationFromAddr(conn.RemoteAddr().(*net.TCPAddr)),
Source: v2net.DestinationFromAddr(conn.RemoteAddr()),
Destination: dest,
}
if strings.ToUpper(request.Method) == "CONNECT" {