mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-11-04 19:28:03 +00:00
Alias 0/0 to be 0.0.0.0/0
This commit is contained in:
1 parent
1b998d13de
commit
82e9503849
1 file changed
+3
@@ -129,6 +129,9 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
ednsClientSubnet := r.FormValue("edns_client_subnet")
|
||||
if ednsClientSubnet == "0/0" {
|
||||
ednsClientSubnet = "0.0.0.0/0"
|
||||
}
|
||||
ednsClientFamily := uint16(0)
|
||||
ednsClientAddress := net.IP(nil)
|
||||
ednsClientNetmask := uint8(255)
|
||||
|
||||
Reference in new issue
Block a user