mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-02 03:39:27 -05:00
- Log warning when using outgoing-port-permit and outgoing-port-avoid
while explicit port randomisation is disabled.
This commit is contained in:
parent
87474563ff
commit
4504dd3737
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue