update dns

This commit is contained in:
Tokumeikoi 2020-04-07 02:47:12 +08:00
parent e1b16ef7e6
commit 3e550142cd

View File

@ -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';
}