From e6391fdfe3dbb246e9a2317d0cb983f5fdb4078d Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 30 Jul 2024 15:32:11 +0200 Subject: [PATCH] wait #7008 --- src/Transfer/Local.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/Transfer/Local.php b/src/Transfer/Local.php index c2bc355..0169b95 100644 --- a/src/Transfer/Local.php +++ b/src/Transfer/Local.php @@ -76,27 +76,6 @@ class Local extends Driver } public function checkConnexion($data = []) { - $hosting = $data['protocol'] === 'hosting' ? 'hosting.fluidbook.com' : 'hosting2.fluidbook.com'; - $ipHosting = dns_get_record($hosting, DNS_A)[0]['ip']; - - $subdomains = explode("\r\n",$data['subdomains']); - $subdomainsIntruder = []; - - if($subdomains) { - foreach($subdomains as $subdomain) { - $ipSubdomain = dns_get_record($subdomain, DNS_A)[0]['ip']; - $ipSubdomain = trim(str_replace('\n', '', shell_exec('dig +short @1.1.1.1 '.$subdomain.' | tail -1'))); - if($ipSubdomain !== $ipHosting) { - $subdomainsIntruder[] = $subdomain; - } - } - } - - if($subdomainsIntruder) { - $subdomainsList = implode(", ",$subdomainsIntruder); - return ['subdomains' => $subdomainsList, 'host' => $hosting]; - } - if(file_exists($this->getRootPath().'status')) { return true; } else { -- 2.39.5