Skip to content

Commit

Permalink
Merge pull request PowerDNS#3135 from paddg/patch-1
Browse files Browse the repository at this point in the history
Use 56 bits instead of 64 in ECS option
  • Loading branch information
Habbie committed Feb 4, 2016
2 parents e114bf3 + 1353273 commit 5b961a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/pdns_recursor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,7 @@ boost::optional<Netmask> getEDNSSubnetMask(const ComboAddress& local, const DNSN
{
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));
Expand Down

0 comments on commit 5b961a8

Please sign in to comment.