fix(metrics): robust contact detection with AstDB fallback and reset f2b counters on clear log (v1.4.7)
This commit is contained in:
1 parent
bda4cb18a6
commit
1e288af617
5 files changed
+65
-13
No files matched your search
+2
-2
@@ -140,7 +140,7 @@ try {
|
||||
$installedVerData = file_exists("{$appDir}/version.json")
|
||||
? json_decode((string)file_get_contents("{$appDir}/version.json"), true)
|
||||
: [];
|
||||
$installedVer = $installedVerData['version'] ?? '1.4.6';
|
||||
$installedVer = $installedVerData['version'] ?? '1.4.7';
|
||||
|
||||
echo json_encode([
|
||||
'success' => true,
|
||||
@@ -227,7 +227,7 @@ try {
|
||||
@chmod($webLog, 0664);
|
||||
}
|
||||
@unlink('/tmp/nexus_fw_status_cache.json');
|
||||
exec('sudo /usr/bin/fail2ban-client reload 2>&1');
|
||||
exec('sudo /usr/bin/systemctl restart fail2ban 2>&1 || sudo /usr/bin/fail2ban-client reload 2>&1');
|
||||
|
||||
echo json_encode([
|
||||
'success' => true,
|
||||
|
||||
Reference in new issue
Block a user