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
+1 -2
View File
@@ -3,7 +3,6 @@ package socks
import (
"errors"
"io"
"net"
"sync"
"time"
@@ -120,7 +119,7 @@ func (this *Server) handleConnection(connection internet.Connection) {
return
}
clientAddr := v2net.TCPDestinationFromAddr(connection.RemoteAddr().(*net.TCPAddr))
clientAddr := v2net.DestinationFromAddr(connection.RemoteAddr())
if err != nil && err == protocol.Socks4Downgrade {
this.handleSocks4(clientAddr, reader, writer, auth4)
} else {