From: Ralph Covelli Date: Fri, 26 May 2017 02:22:01 +0000 (+0100) Subject: added CommunicatorClass::LoadArgsIntoSet and fixed some spelling errors X-Git-Tag: rec-4.1.0-alpha1~90^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d702c27f409cc5b3cf7b0298455de21db73b14c0;p=thirdparty%2Fpdns.git added CommunicatorClass::LoadArgsIntoSet and fixed some spelling errors --- diff --git a/docs/markdown/authoritative/settings.md b/docs/markdown/authoritative/settings.md index 4bfa49097f..c93637bb3a 100644 --- a/docs/markdown/authoritative/settings.md +++ b/docs/markdown/authoritative/settings.md @@ -364,10 +364,10 @@ Forward DNS updates sent to a slave to the master. ## `forward-notify` * IP addresses, separated by commas -IP addresses to send received notifications to regardless of master or slave settings. +IP addresses to forward received notifications to regardless of master or slave settings. Note: The intended use is in anycast environments where it might be necessary for a -proxy server to preform the AXFR. The usual checks are preformed before any received +proxy server to perform the AXFR. The usual checks are performed before any received notification is forwarded. ## `guardian` diff --git a/pdns/communicator.cc b/pdns/communicator.cc index 7cd6955d86..dc12ff9961 100644 --- a/pdns/communicator.cc +++ b/pdns/communicator.cc @@ -37,21 +37,6 @@ #include "arguments.hh" #include "packetcache.hh" -#define CommunicatorLoadArgsIntoSet(listname, listset) do { \ - vector parts; \ - stringtok(parts, ::arg()[(listname)], ", \t"); \ - for (vector::const_iterator iter = parts.begin(); iter != parts.end(); ++iter) { \ - try { \ - ComboAddress caIp(*iter, 53); \ - (listset).insert(caIp.toStringWithPort()); \ - } \ - catch(PDNSException &e) { \ - L< &listset) +{ + vector parts; + stringtok(parts, ::arg()[listname], ", \t"); + for (vector::const_iterator iter = parts.begin(); iter != parts.end(); ++iter) { + try { + ComboAddress caIp(*iter, 53); + listset.insert(caIp.toStringWithPort()); + } + catch(PDNSException &e) { + L< &listset); void makeNotifySockets(); void queueNotifyDomain(const DomainInfo& di, UeberBackend* B); int d_nsock4, d_nsock6;