From 3fa28388520c283bd60f7b4429adaa1827d1198e Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 22 Mar 2016 10:16:35 +0100 Subject: [PATCH] dnsdist: Display the ACL content on startup Closes #3588. --- pdns/dnsdist.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- 2.47.2