hashbot migration with backup

This commit is contained in:
mercury
2025-02-06 16:09:21 +04:00
parent 0737327e4b
commit c2cd945991
+7 -1
View File
@@ -6721,7 +6721,13 @@ DNS-over-HTTPS with IP:
public function getHashBot()
{
return substr(hash('sha256', $this->key), 0, 8);
$p = $this->getPacConf();
if (!empty($p['hashbot'])) {
return $p['hashbot'];
}
$p['hashbot'] = substr(hash('sha256', $this->key), 0, 8);
$this->setPacConf($p);
return $p['hashbot'];
}
public function cloakNginx()