From 283ae4d6e99e7ad35c2436301b49f0880f45d1cc Mon Sep 17 00:00:00 2001 From: zhaoke Date: Wed, 19 Apr 2023 13:09:26 +0800 Subject: [PATCH] * Remove unused code. --- module/zahost/model.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/zahost/model.php b/module/zahost/model.php index b04ed74f11..18a3a5face 100644 --- a/module/zahost/model.php +++ b/module/zahost/model.php @@ -139,8 +139,6 @@ class zahostModel extends model { $address = str_replace(array('https://', 'http://'), '', $address); - if(!validater::checkDomain($address) && !validater::checkIP($address)) return false; - if ($this->ping($address)) return true; foreach(array(80, 443, $this->config->zahost->defaultPort) as $port)