fix dns port string to int

This commit is contained in:
Tokumeikoi 2020-04-08 15:35:01 +08:00
parent 54a8542e0f
commit 1b3833173d
2 changed files with 1 additions and 7 deletions

View File

@ -59,12 +59,6 @@ class ServerService
array_push($dns->servers, '1.1.1.1');
array_push($dns->servers, 'localhost');
}
$dns->servers = array_map(function ($v) {
if (is_object($v)) {
$v->port = (int)$v->port;
}
return $v;
}, $dns->servers);
$json->dns = $dns;
$json->outbound->settings->domainStrategy = 'UseIP';
}

File diff suppressed because one or more lines are too long