diff --git a/app/common.php b/app/common.php index c87ae35..df8086e 100644 --- a/app/common.php +++ b/app/common.php @@ -312,7 +312,7 @@ function getMainDomain($host) } } $domain_root = file_get_contents(app()->getBasePath() . 'data' . DIRECTORY_SEPARATOR . 'domain_root.txt'); - $domain_root = explode("\r\n", $domain_root); + $domain_root = explode("\n", $domain_root); $data = explode('.', $host); $co_ta = count($data); if ($co_ta <= 2) return $host; diff --git a/app/lib/dns/henet.php b/app/lib/dns/henet.php index 5d579af..ce4c483 100644 --- a/app/lib/dns/henet.php +++ b/app/lib/dns/henet.php @@ -534,7 +534,7 @@ class henet implements DnsInterface private function saveCachedSession() { if ($this->cookie !== '') { - Cache::set($this->cacheKey, $this->cookie, 3600); + Cache::set($this->cacheKey, $this->cookie, 3600 * 12); } }