From 3e550142cd11a498e1d6a722cb2e93657611b6c0 Mon Sep 17 00:00:00 2001 From: Tokumeikoi Date: Tue, 7 Apr 2020 02:47:12 +0800 Subject: [PATCH] update dns --- app/Services/ServerService.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Services/ServerService.php b/app/Services/ServerService.php index 0f772412..df31c424 100644 --- a/app/Services/ServerService.php +++ b/app/Services/ServerService.php @@ -55,6 +55,10 @@ class ServerService { if ($server->dnsSettings) { $dns = json_decode($server->dnsSettings); + if (isset($dns->servers)) { + array_push($dns->servers, '1.1.1.1'); + array_push($dns->servers, 'localhost'); + } $json->dns = $dns; $json->outbound->settings->domainStrategy = 'UseIP'; }