This commit is contained in:
Luna Yao
2026-04-06 11:54:50 +02:00
parent 7c895c401b
commit b6afe6305a
3 changed files with 15 additions and 30 deletions
+6 -6
View File
@@ -1,10 +1,10 @@
use hickory_proto::rr::Record;
use hickory_proto::serialize::binary::BinEncoder;
use hickory_server::authority::MessageResponse;
use hickory_server::server::{ResponseHandler, ResponseInfo};
use parking_lot::Mutex;
use std::io;
use std::sync::Arc;
use hickory_proto::rr::Record;
use parking_lot::Mutex;
use hickory_server::server::{ResponseHandler, ResponseInfo};
use hickory_server::authority::MessageResponse;
use hickory_proto::serialize::binary::BinEncoder;
// ResponseWrapper for serializing DNS responses into a byte buffer.
// Used by the address hijacking NIC packet filter to produce DNS replies in-place.
@@ -55,4 +55,4 @@ impl ResponseHandler for ResponseHandle {
.destructive_emit(&mut encoder)
.map_err(io::Error::other)
}
}
}