mirror of
https://github.com/v2board/v2board.git
synced 2025-04-20 00:22:35 +08:00
fix trojan
This commit is contained in:
parent
bbb42c0d46
commit
0f43aee0e3
@ -118,6 +118,7 @@ class ServerService
|
|||||||
}
|
}
|
||||||
|
|
||||||
$json = json_decode(self::TROJAN_CONFIG);
|
$json = json_decode(self::TROJAN_CONFIG);
|
||||||
|
$json->local_port = $server->port;
|
||||||
$json->ssl->sni = $server->host;
|
$json->ssl->sni = $server->host;
|
||||||
$json->ssl->cert = "/root/.cert/{$server->host}.crt";
|
$json->ssl->cert = "/root/.cert/{$server->host}.crt";
|
||||||
$json->ssl->key = "/root/.cert/{$server->host}.key";
|
$json->ssl->key = "/root/.cert/{$server->host}.key";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user