mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-01-03 04:50:11 +00:00
remove error log when dns lookup fails
This commit is contained in:
parent
cc2ae28d69
commit
ab9f1e830a
@ -76,7 +76,7 @@ func (pxy *Proxy) Start() {
|
|||||||
|
|
||||||
ip, err := pxy.resolver.Lookup(pkt.Domain())
|
ip, err := pxy.resolver.Lookup(pkt.Domain())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("[PROXY] Error while dns lookup: ", pkt.Domain(), " ", err)
|
log.Debug("[PROXY] Error while dns lookup: ", pkt.Domain(), " ", err)
|
||||||
conn.Write([]byte(pkt.Version() + " 502 Bad Gateway\r\n\r\n"))
|
conn.Write([]byte(pkt.Version() + " 502 Bad Gateway\r\n\r\n"))
|
||||||
conn.Close()
|
conn.Close()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user