Commit 776283a8 authored by Nigel Kukard's avatar Nigel Kukard

Moved caveat out of enable_mikrotik check block

parent 99c28ff7
...@@ -94,16 +94,16 @@ sub init ...@@ -94,16 +94,16 @@ sub init
} else { } else {
$server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Value for 'enable_mikrotik' is invalid"); $server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Value for 'enable_mikrotik' is invalid");
} }
}
if (defined(my $val = isBoolean($scfg->{'mod_feature_capping'}{'caveat_captrafzero'}))) { # Check if we have the caveat setting
if ($val) { if (defined(my $val = isBoolean($scfg->{'mod_feature_capping'}{'caveat_captrafzero'}))) {
$server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Caveat to swap '0' and -undef- for ". if ($val) {
"SMRadius-Capping-Traffic-Limit ENABLED"); $server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Caveat to swap '0' and -undef- for ".
$config->{'caveat_captrafzero'} = $val; "SMRadius-Capping-Traffic-Limit ENABLED");
} $config->{'caveat_captrafzero'} = $val;
} else {
$server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Value for 'caveat_captrafzero' is invalid");
} }
} else {
$server->log(LOG_NOTICE,"[MOD_FEATURE_CAPPING] Value for 'caveat_captrafzero' is invalid");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment