mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 13:47:49 +08:00
update trojan
This commit is contained in:
@ -33,7 +33,8 @@ class QuantumultX
|
||||
|
||||
public static function buildTrojan($password, $server)
|
||||
{
|
||||
$uri = "trojan={$server->host}:{$server->port}, password={$password}, over-tls=true, tls-verification=true, fast-open=false, udp-relay=false, tag={$server->name}";
|
||||
$tlsVerification = $server->allow_insecure ? true : false;
|
||||
$uri = "trojan={$server->host}:{$server->port}, password={$password}, over-tls=true, tls-host={$server->server_name}, tls-verification={$tlsVerification}, fast-open=false, udp-relay=false, tag={$server->name}";
|
||||
$uri .= "\r\n";
|
||||
return $uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user