fix: DoH endpoint accepts loopback, TLS cert includes IP SANs #88
Reference in New Issue
Block a user
Delete Branch "fix/doh-loopback-san"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
is_doh_host) now accepts127.0.0.1,::1, andlocalhost(with optional port suffix)127.0.0.1and::1as IP SANs, plus the bare TLD (numa) as a DNS SANhttps://127.0.0.1/dns-queryas a DoH URL in browsers that reject single-label hostnames (e.g. Opera)Closes #87
Test plan
is_doh_hostunit tests cover loopback IPs, localhost, and port-suffixed variantscurl -sk https://127.0.0.1/dns-queryreturns HTTP 200