mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-08-22 03:20:14 +00:00
Alias 0/0 to be 0.0.0.0/0
This commit is contained in:
@@ -129,6 +129,9 @@ func (s *Server) handlerFunc(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ednsClientSubnet := r.FormValue("edns_client_subnet")
|
ednsClientSubnet := r.FormValue("edns_client_subnet")
|
||||||
|
if ednsClientSubnet == "0/0" {
|
||||||
|
ednsClientSubnet = "0.0.0.0/0"
|
||||||
|
}
|
||||||
ednsClientFamily := uint16(0)
|
ednsClientFamily := uint16(0)
|
||||||
ednsClientAddress := net.IP(nil)
|
ednsClientAddress := net.IP(nil)
|
||||||
ednsClientNetmask := uint8(255)
|
ednsClientNetmask := uint8(255)
|
||||||
|
|||||||
Reference in New Issue
Block a user