update trojan

This commit is contained in:
Tokumeikoi
2020-07-01 15:23:39 +08:00
parent 37449b6640
commit 75588d46f1
8 changed files with 40 additions and 16 deletions

View File

@ -119,7 +119,7 @@ class ServerService
$json = json_decode(self::TROJAN_CONFIG);
$json->local_port = $server->server_port;
$json->ssl->sni = $server->host;
$json->ssl->sni = $server->server_name ? $server->server_name : $server->host;
$json->ssl->cert = "/root/.cert/{$server->host}.crt";
$json->ssl->key = "/root/.cert/{$server->host}.key";
$json->api->api_port = $localPort;