From: Aki Tuomi Date: Sun, 15 Apr 2018 17:52:11 +0000 (+0300) Subject: dnsbackend: Make isMaster a const X-Git-Tag: dnsdist-1.3.1~140^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f538e82638cf469697657cb543377d6bf7443a3;p=pdns dnsbackend: Make isMaster a const The const keyword fell to wrong side of the function, so move it where it belongs to. Broken in a2dfc9ea78614a9eef514a612117e507d70d4664 --- diff --git a/pdns/dnsbackend.hh b/pdns/dnsbackend.hh index 2ff9d1462..0d35c919b 100644 --- a/pdns/dnsbackend.hh +++ b/pdns/dnsbackend.hh @@ -87,7 +87,7 @@ struct DomainInfo return DomainInfo::Native; } - const bool isMaster(const ComboAddress& ip) + bool isMaster(const ComboAddress& ip) const { for( const auto& master: masters) { if(ComboAddress::addressOnlyEqual()(ip, master))