mirror of
https://github.com/v2board/v2board.git
synced 2025-02-12 00:10:31 +08:00
fix dns port string to int
This commit is contained in:
parent
3e550142cd
commit
54a8542e0f
@ -59,6 +59,12 @@ class ServerService
|
|||||||
array_push($dns->servers, '1.1.1.1');
|
array_push($dns->servers, '1.1.1.1');
|
||||||
array_push($dns->servers, 'localhost');
|
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->dns = $dns;
|
||||||
$json->outbound->settings->domainStrategy = 'UseIP';
|
$json->outbound->settings->domainStrategy = 'UseIP';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user