From 4e243f6ec7e2384dfccafafee7dc599979559a22 Mon Sep 17 00:00:00 2001 From: Rico Date: Sat, 26 Jan 2019 16:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0127.0.0.1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86=E4=BD=BF=E7=94=A8dns=20over=20https?= =?UTF-8?q?=20google?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Command/Job.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Command/Job.php b/app/Command/Job.php index 2d812f12..e7e8e695 100644 --- a/app/Command/Job.php +++ b/app/Command/Job.php @@ -19,6 +19,7 @@ use App\Models\BlockIp; use App\Models\TelegramSession; use App\Models\EmailVerify; use App\Services\Config; +use App\Utils\DNSoverHTTPS; use App\Utils\Radius; use App\Utils\Tools; use App\Services\Mail; @@ -105,6 +106,9 @@ class Job $rule = preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/",$node->server); if (!$rule && (!$node->sort || $node->sort == 10)) { $ip=gethostbyname($node->server); + if ($ip == "127.0.0.1"){ + $ip = DNSoverHTTPS::gethostbyName($node->server); + } $node->node_ip=$ip; $node->save();