diff --git a/phantomtcp/proxy.go b/phantomtcp/proxy.go index bb90a28..d6baef8 100755 --- a/phantomtcp/proxy.go +++ b/phantomtcp/proxy.go @@ -292,11 +292,7 @@ func tcp_redirect(client net.Conn, addr *net.TCPAddr, domain string, header []by var pface *PhantomInterface = nil if domain == "" { - var ok bool - pface, ok = DefaultProfile.DomainMap[domain] - if !ok { - pface = DefaultProfile.GetInterfaceByIP(addr.IP) - } + pface = DefaultProfile.GetInterfaceByIP(addr.IP) if pface != nil { domain = addr.IP.String() } @@ -304,8 +300,6 @@ func tcp_redirect(client net.Conn, addr *net.TCPAddr, domain string, header []by pface = DefaultProfile.GetInterface(domain) } - logPrintln(1, pface) - if pface != nil && (pface.Protocol != 0 || pface.Hint != 0) { if pface.Hint&HINT_NOTCP != 0 { time.Sleep(time.Second)