mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-07 17:51:16 +08:00
debug
This commit is contained in:
@@ -3,7 +3,6 @@ package proxy
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
@@ -29,7 +28,6 @@ func lookupHost(fakeDNS dns.FakeDNS, target net.Addr) (targetHost string, err er
|
||||
targetHost = targetIP.String()
|
||||
// Replace with a domain name if target address IP is a fake IP
|
||||
if fakeDNS != nil {
|
||||
log.Warnf("lookup dns: %v", targetHost)
|
||||
if host, exist := fakeDNS.IPToHost(targetIP); exist {
|
||||
targetHost = host
|
||||
}
|
||||
|
Reference in New Issue
Block a user