]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Log warning when using outgoing-port-permit and outgoing-port-avoid
authorRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 19 Mar 2020 16:34:46 +0000 (17:34 +0100)
committerRalph Dolmans <ralph@nlnetlabs.nl>
Thu, 19 Mar 2020 16:34:46 +0000 (17:34 +0100)
  while explicit port randomisation is disabled.

util/config_file.c

index 394cf17f33aabd38c02a17962b94629ab0f0f7f6..814d9f436117c9634e29937a3966f7e95d67fd5f 100644 (file)
@@ -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) {