mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
Update V2rayN.php
This commit is contained in:
parent
0000c071e7
commit
0b5baa70f0
@ -205,7 +205,8 @@ class V2rayN
|
||||
public static function buildHysteria($password, $server)
|
||||
{
|
||||
$name = rawurlencode($server['name']);
|
||||
if ($server['server_name']) $params = ['sni' => $server['server_name']];
|
||||
$params = [];
|
||||
if ($server['server_name']) $params['sni'] = $server['server_name'];
|
||||
$params['insecure'] = $server['insecure'] ? 1 : 0;
|
||||
$query = http_build_query($params);
|
||||
if ($server['version'] == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user