aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-08-19 23:34:31 +0200
committerHimbeer <himbeer@disroot.org>2024-08-19 23:34:31 +0200
commit0e1e988bce44081b96c47d8d9c39e5fde8f63a2e (patch)
tree29f815f57a1aabac939df902185a81c760ea24c8
parent875bfbba76d73971ebafb800b0f1b8c60c81a097 (diff)
Fix hosts file reverse answers always being suffixed with the search domain
-rw-r--r--src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 5c7de6f..1439a7b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -382,11 +382,7 @@ fn handle_query(
forward_hosts.clone(),
reverse_hosts.clone(),
) {
- let name = entry.0
- + &domain
- .as_ref()
- .map(|domain| domain.to_utf8())
- .unwrap_or_default();
+ let name = entry.0;
let answer = RR::PTR(PTR {
domain_name: q.domain_name,