From: Remi Gacogne Date: Tue, 22 Mar 2016 09:16:35 +0000 (+0100) Subject: dnsdist: Display the ACL content on startup X-Git-Tag: dnsdist-1.0.0-beta1~72^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa28388520c283bd60f7b4429adaa1827d1198e;p=thirdparty%2Fpdns.git dnsdist: Display the ACL content on startup Closes #3588. --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 98f45eb3df..7d447262fb 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1596,6 +1596,15 @@ try else { vinfolog("Running in the foreground"); warnlog("dnsdist %s comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2", VERSION); + vector vec; + std::string acls; + g_ACL.getCopy().toStringVector(&vec); + for(const auto& s : vec) { + if (!acls.empty()) + acls += ", "; + acls += s; + } + infolog("ACL allowing queries from: %s", acls.c_str()); } /* this need to be done _after_ dropping privileges */