Alias 0/0 to be 0.0.0.0/0

This commit is contained in:
Star Brilliant
2017-11-30 13:38:30 +08:00
parent 1b998d13de
commit 82e9503849

View File

@@ -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)