Skip to content

Commit

Permalink
🐛 Fix for HTTPS queries bypassing local address rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyish authored Feb 4, 2024
1 parent ba07a2c commit 72f5213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_mw_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn handle_rule_addr(query_type: RecordType, ctx: &DnsContext) -> Option<RData> {
}

// skip address rule.
if server_opts.no_rule_addr() || !query_type.is_ip_addr() {
if server_opts.no_rule_addr() || (!query_type.is_ip_addr() && query_type != HTTPS) {
return None;
}

Expand Down

0 comments on commit 72f5213

Please sign in to comment.