Skip to content

Commit

Permalink
dns_server: fix force https SOA issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
pymumu committed Jan 7, 2024
1 parent c787430 commit 10a7cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dns_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -4661,7 +4661,7 @@ static int _dns_server_pre_process_server_flags(struct dns_request *request)
request->no_serve_expired = 1;
}

if (_dns_server_has_bind_flag(request, BIND_FLAG_FORCE_HTTPS_SOA) == 0) {
if (request->qtype == DNS_T_HTTPS && _dns_server_has_bind_flag(request, BIND_FLAG_FORCE_HTTPS_SOA) == 0) {
_dns_server_reply_SOA(DNS_RC_NOERROR, request);
return 0;
}
Expand Down

0 comments on commit 10a7cc1

Please sign in to comment.