Issue #288: Split allowed IPs settings into two.

Merge two settings when accessing config.
Bump version.
This commit is contained in:
Jason den Dulk
2022-04-28 09:47:58 +10:00
parent afc96d347d
commit c64a33c345
5 changed files with 35 additions and 5 deletions

View File

@@ -168,7 +168,12 @@ class outagelib {
}
}
return (object)array_merge(self::get_config_defaults(), $config);
$config = array_merge(self::get_config_defaults(), $config);
// Combine allowed IPs config values together.
if (isset($config['allowedips_forced'])) {
$config['allowedips'] = trim($config['allowedips'] . "\n" . $config['allowedips_forced']);
}
return (object)$config;
}
/**