diff --git a/app/bot.php b/app/bot.php index 7466633..77ec239 100644 --- a/app/bot.php +++ b/app/bot.php @@ -6855,7 +6855,13 @@ DNS-over-HTTPS with IP: public function getHashSubdomain($subdomain) { - return $this->getPacConf()["{$subdomain}_domain"] ?: substr(hash('sha256', "$subdomain{$this->key}"), 0, 8); + $p = $this->getPacConf(); + if (!empty($p["{$subdomain}_domain"])) { + return $p["{$subdomain}_domain"]; + } + $p["{$subdomain}_domain"] = substr(hash('sha256', "$subdomain{$this->key}"), 0, 8); + $this->setPacConf($p); + return $p["{$subdomain}_domain"]; } public function addWg($page)