Allow port_control_reasons setting to actually work

This commit is contained in:
Oliver Gorwits
2021-09-03 21:17:11 +01:00
parent 9e9b0489e5
commit 43ce26ef3d
4 changed files with 13 additions and 2 deletions

View File

@@ -136,6 +136,11 @@ if ($ENV{NETDISCO_DOMAIN}) {
}
}
# check user's port_control_reasons
config->{'port_control_reasons'} =
config->{'port_control_reasons'} || config->{'system_port_control_reasons'};
# convert domain_suffix from scalar or list to regexp
config->{'domain_suffix'} = [setting('domain_suffix')]