simplify/unify naming & wording of the two types of IP lists for the traffic limiter

This commit is contained in:
El RIDO
2022-02-20 09:09:20 +01:00
parent d764c03759
commit 91041d8c59
5 changed files with 27 additions and 24 deletions

View File

@@ -196,7 +196,7 @@ class Controller
private function _create()
{
// Check if whitelist feature is enabled
if (($option = $this->_conf->getKey('whitelist_paste_creation', 'traffic')) !== null) {
if (($option = $this->_conf->getKey('creators', 'traffic')) !== '') {
// Parse whitelist into array
$whitelist = explode(',', $option);
// Check for source IP in HTTP header