This commit is contained in:
root 2019-10-26 18:55:08 +08:00
parent 8bf727055b
commit 3fec34bae6

View File

@ -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");