Tokumeikoi 5 년 전
부모
커밋
139aeb3f48
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/Services/ServerService.php

+ 2 - 1
app/Services/ServerService.php

@@ -43,6 +43,7 @@ class ServerService
         $json->inboundDetour[0]->port = (int)$localPort;
         $json->inbound->port = (int)$server->server_port;
         $json->inbound->streamSettings->network = $server->network;
+        $this->setDns($server, $json);
         $this->setNetwork($server, $json);
         $this->setRule($server, $json);
         $this->setTls($server, $json);
@@ -54,7 +55,7 @@ class ServerService
     {
         if ($server->dnsSettings) {
             $dns = json_decode($server->dnsSettings);
-
+            $json->dns = $dns;
         }
     }