|
@@ -102,9 +102,9 @@ discard block |
|
|
block discarded – undo |
|
102
|
102
|
|
|
103
|
103
|
$this->kernel->setProperty('time_unit_quota', $frequencyQuota); |
|
104
|
104
|
|
|
105
|
|
- $this->kernel->setProperty('cookie_name', $settings['cookie']['config']['cookie_name']); // ssjd |
|
106
|
|
- $this->kernel->setProperty('cookie_domain', $settings['cookie']['config']['cookie_domain']); // '' |
|
107
|
|
- $this->kernel->setProperty('cookie_value', $settings['cookie']['config']['cookie_value']); // 1 |
|
|
105
|
+ $this->kernel->setProperty('cookie_name', $settings['cookie']['config']['cookie_name']); // ssjd |
|
|
106
|
+ $this->kernel->setProperty('cookie_domain', $settings['cookie']['config']['cookie_domain']); // '' |
|
|
107
|
+ $this->kernel->setProperty('cookie_value', $settings['cookie']['config']['cookie_value']); // 1 |
|
108
|
108
|
|
|
109
|
109
|
$this->kernel->setProperty('interval_check_referer', $settings['referer']['config']['time_buffer']); |
|
110
|
110
|
$this->kernel->setProperty('interval_check_session', $settings['referer']['config']['time_buffer']); |
|
@@ -211,7 +211,7 @@ discard block |
|
|
block discarded – undo |
|
211
|
211
|
|
|
212
|
212
|
foreach ($ipList as $ip) { |
|
213
|
213
|
|
|
214
|
|
- if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) { |
|
|
214
|
+ if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url'])) { |
|
215
|
215
|
|
|
216
|
216
|
if ('allow' === $ip['rule']) { |
|
217
|
217
|
$allowedList[] = $ip['ip']; |
|
@@ -279,7 +279,7 @@ discard block |
|
|
block discarded – undo |
|
279
|
279
|
{ |
|
280
|
280
|
$setting = $this->getOption('failed_attempts_in_a_row', 'events'); |
|
281
|
281
|
|
|
282
|
|
- $enableDataCircle = $setting['data_circle']['enable'] ?: false; |
|
|
282
|
+ $enableDataCircle = $setting['data_circle']['enable'] ?: false; |
|
283
|
283
|
$enableSystemFirewall = $setting['system_firewall']['enable'] ?: false; |
|
284
|
284
|
|
|
285
|
285
|
$this->kernel->setProperty('deny_attempt_enable', [ |
|
@@ -296,7 +296,7 @@ discard block |
|
|
block discarded – undo |
|
296
|
296
|
$recordAttempt = $this->getOption('record_attempt'); |
|
297
|
297
|
|
|
298
|
298
|
$detectionPeriod = $recordAttempt['detection_period'] ?? 5; |
|
299
|
|
- $timeToReset = $recordAttempt['time_to_reset'] ?? 1800; |
|
|
299
|
+ $timeToReset = $recordAttempt['time_to_reset'] ?? 1800; |
|
300
|
300
|
|
|
301
|
301
|
$this->kernel->setProperty('record_attempt_detection_period', $detectionPeriod); |
|
302
|
302
|
$this->kernel->setProperty('reset_attempt_counter', $timeToReset); |
|
@@ -310,7 +310,7 @@ discard block |
|
|
block discarded – undo |
|
310
|
310
|
protected function setIptablesBridgeDirectory(): void |
|
311
|
311
|
{ |
|
312
|
312
|
$iptablesSetting = $this->getOption('config', 'iptables'); |
|
313
|
|
- $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
|
313
|
+ $this->kernel->setProperty('iptables_watching_folder', $iptablesSetting['watching_folder']); |
|
314
|
314
|
} |
|
315
|
315
|
|
|
316
|
316
|
/** |
|
@@ -324,7 +324,7 @@ discard block |
|
|
block discarded – undo |
|
324
|
324
|
|
|
325
|
325
|
if ($sessionLimitSetting['enable']) { |
|
326
|
326
|
|
|
327
|
|
- $onlineUsers = $sessionLimitSetting['config']['count'] ?? 100; |
|
|
327
|
+ $onlineUsers = $sessionLimitSetting['config']['count'] ?? 100; |
|
328
|
328
|
$alivePeriod = $sessionLimitSetting['config']['period'] ?? 300; |
|
329
|
329
|
|
|
330
|
330
|
$this->kernel->limitSession($onlineUsers, $alivePeriod); |
|
@@ -347,7 +347,7 @@ discard block |
|
|
block discarded – undo |
|
347
|
347
|
|
|
348
|
348
|
$lastResetTime = $cronjobSetting['config']['last_update']; |
|
349
|
349
|
|
|
350
|
|
- if (!empty($lastResetTime) ) { |
|
|
350
|
+ if (!empty($lastResetTime)) { |
|
351
|
351
|
$lastResetTime = strtotime($lastResetTime); |
|
352
|
352
|
} else { |
|
353
|
353
|
// @codeCoverageIgnoreStart |