mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-25 01:31:06 +08:00
fix fakeDNS is nil
This commit is contained in:
@@ -85,9 +85,6 @@ func (h *tcpHandler) Handle(conn net.Conn, target *net.TCPAddr) error {
|
||||
// Alias
|
||||
var localConn = conn
|
||||
|
||||
if h.fakeDNS == nil {
|
||||
log.Warnf("fakedns is nil")
|
||||
}
|
||||
// Lookup fakeDNS host record
|
||||
targetHost, err := lookupHost(h.fakeDNS, target)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user