mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-07-21 04:51:09 +00:00
Remove X-Edns-Client-Subnet, that is not useful
This commit is contained in:
+1
-2
@@ -84,8 +84,7 @@ func Marshal(msg *dns.Msg) *Response {
|
||||
} else if ipv4 := clientAddress.To4(); ipv4 != nil {
|
||||
clientAddress = ipv4
|
||||
}
|
||||
scopeMask := net.CIDRMask(int(edns0.SourceScope), len(clientAddress) * 8)
|
||||
resp.EdnsClientSubnet = clientAddress.Mask(scopeMask).String() + "/" + strconv.Itoa(int(edns0.SourceScope))
|
||||
resp.EdnsClientSubnet = clientAddress.String() + "/" + strconv.Itoa(int(edns0.SourceScope))
|
||||
}
|
||||
}
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user