From: Ralph Dolmans Date: Thu, 19 Mar 2020 16:34:46 +0000 (+0100) Subject: - Log warning when using outgoing-port-permit and outgoing-port-avoid X-Git-Tag: release-1.11.0~93^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4504dd3737fb9fbf6590c9be905ab4d85fcada25;p=thirdparty%2Funbound.git - Log warning when using outgoing-port-permit and outgoing-port-avoid while explicit port randomisation is disabled. --- diff --git a/util/config_file.c b/util/config_file.c index 394cf17f3..814d9f436 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -1530,6 +1530,11 @@ int cfg_mark_ports(const char* str, int allow, int* avail, int num) { char* mid = strchr(str, '-'); +#ifdef DISABLE_EXPLICIT_PORT_RANDOMISATION + log_warn("Explicit port randomisation disabled, ignoring " + "outgoing-port-permit and outgoing-port-avoid configuration " + "options"); +#endif if(!mid) { int port = atoi(str); if(port == 0 && strcmp(str, "0") != 0) {