From ff320ee74ac59d99e53bdae17a3c95c4d7da2e6a Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 12 Nov 2020 17:06:07 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Peter van Dijk --- docs/settings.rst | 2 +- pdns/trusted-notification-proxy.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/settings.rst b/docs/settings.rst index 314c865a5cd1..8110b9f5fdad 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -1724,7 +1724,7 @@ Enable the Linux-only traceback handler. ------------------------------ .. versionchanged:: 4.4.0 - This option now accepts a comma-separated list of IP ranges. This was a single IP address as a string before + This option now accepts a comma-separated list of IP ranges. This was a list of IP addresses before. - IP ranges, separated by commas diff --git a/pdns/trusted-notification-proxy.cc b/pdns/trusted-notification-proxy.cc index f851493de626..00a8cc37b66d 100644 --- a/pdns/trusted-notification-proxy.cc +++ b/pdns/trusted-notification-proxy.cc @@ -33,9 +33,9 @@ namespace pdns { try { g_trustedNotificationProxies.addMask(Netmask(a)); } catch (const PDNSException &e) { - throw PDNSException("Unable to add address " + a + " as a trusted-notification-proxy: " + e.reason); + throw PDNSException("Unable to add network " + a + " as a trusted-notification-proxy: " + e.reason); } catch (const std::exception &e) { - throw PDNSException("Unable to add address " + a + " as a trusted-notification-proxy: " + e.what()); + throw PDNSException("Unable to add network " + a + " as a trusted-notification-proxy: " + e.what()); } } }