fix fakeDNS is nil

This commit is contained in:
Jason
2019-08-14 21:25:32 +08:00
parent 13c193f24f
commit d6c40a736e
2 changed files with 3 additions and 5 deletions

View File

@@ -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 {