remove error log when dns lookup fails

This commit is contained in:
xvzc 2024-08-01 21:45:16 +09:00
parent cc2ae28d69
commit ab9f1e830a

View File

@ -76,7 +76,7 @@ func (pxy *Proxy) Start() {
ip, err := pxy.resolver.Lookup(pkt.Domain())
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.Close()
return