Tokumeikoi пре 5 година
родитељ
комит
3e550142cd
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      app/Services/ServerService.php

+ 4 - 0
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';
         }