Remove X-Edns-Client-Subnet, that is not useful

This commit is contained in:
Star Brilliant
2017-10-04 14:23:39 +08:00
parent 3efaf6380f
commit 15e6ec1491
2 changed files with 1 additions and 6 deletions
+1 -2
View File
@@ -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