mirror of
https://github.com/v2board/v2board.git
synced 2025-01-31 02:29:14 +08:00
update
This commit is contained in:
parent
8bf727055b
commit
3fec34bae6
@ -93,7 +93,7 @@ class DeepbworkController extends Controller
|
|||||||
$server = Server::find($nodeId);
|
$server = Server::find($nodeId);
|
||||||
$jsonData = json_decode(self::SERVER_CONFIG);
|
$jsonData = json_decode(self::SERVER_CONFIG);
|
||||||
$jsonData->inboundDetour[0]->port = (int)$localPort;
|
$jsonData->inboundDetour[0]->port = (int)$localPort;
|
||||||
$jsonData->inbound->port = (int)$server->port;
|
$jsonData->inbound->port = (int)$server->server_port;
|
||||||
if ((int)$server->tls) {
|
if ((int)$server->tls) {
|
||||||
$jsonData->inbound->streamSettings->security = "tls";
|
$jsonData->inbound->streamSettings->security = "tls";
|
||||||
$tls = (object) array("certificateFile" => "/home/v2ray.crt", "keyFile" => "/home/v2ray.key");
|
$tls = (object) array("certificateFile" => "/home/v2ray.crt", "keyFile" => "/home/v2ray.key");
|
||||||
|
Loading…
Reference in New Issue
Block a user