to please https://tools.ietf.org/html/draft-ietf-dnsop-edns-client-subnet-06#section-11 and protect IPv6 users privacy as well.
{
if(local.sin4.sin_family != AF_INET || local.sin4.sin_addr.s_addr) { // detect unset 'requestor'
if(g_ednsdomains.check(dn) || g_ednssubnets.match(rem)) {
- int bits =local.sin4.sin_family == AF_INET ? 24 : 64;
+ int bits =local.sin4.sin_family == AF_INET ? 24 : 56;
ComboAddress trunc(local);
trunc.truncate(bits);
return boost::optional<Netmask>(Netmask(trunc, bits));