style: rustfmt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
src/dot.rs
10
src/dot.rs
@@ -186,7 +186,10 @@ where
|
|||||||
resp.header.id = query_id;
|
resp.header.id = query_id;
|
||||||
resp.header.response = true;
|
resp.header.response = true;
|
||||||
resp.header.rescode = ResultCode::FORMERR;
|
resp.header.rescode = ResultCode::FORMERR;
|
||||||
if send_response(&mut stream, &resp, remote_addr).await.is_err() {
|
if send_response(&mut stream, &resp, remote_addr)
|
||||||
|
.await
|
||||||
|
.is_err()
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
@@ -206,7 +209,10 @@ where
|
|||||||
warn!("{} | RESOLVE ERROR | {}", remote_addr, e);
|
warn!("{} | RESOLVE ERROR | {}", remote_addr, e);
|
||||||
// SERVFAIL that echoes the original question section.
|
// SERVFAIL that echoes the original question section.
|
||||||
let resp = DnsPacket::response_from(&query, ResultCode::SERVFAIL);
|
let resp = DnsPacket::response_from(&query, ResultCode::SERVFAIL);
|
||||||
if send_response(&mut stream, &resp, remote_addr).await.is_err() {
|
if send_response(&mut stream, &resp, remote_addr)
|
||||||
|
.await
|
||||||
|
.is_err()
|
||||||
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user