Skip to content

Commit

Permalink
Merge pull request #227 from mercury7720/dev
Browse files Browse the repository at this point in the history
[fix]: Loon Hysteria2 node cannot get SNI
  • Loading branch information
cedar2025 authored Oct 6, 2024
2 parents 47b0646 + 0e2d961 commit 2f29c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Protocols/Loon.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static function buildHysteria($password, $server, $user)
$server['host'],
$server['port'],
$password,
$server['server_name'] ? "tls={$server['server_name']}" : "(null)"
$server['server_name'] ? "sni={$server['server_name']}" : "(null)"
];
if ($server['insecure']) $config[] = "skip-cert-verify=true";
$config[] = "download-bandwidth=" . ($user->speed_limit ? min($server['down_mbps'], $user->speed_limit) : $server['down_mbps']);
Expand Down

0 comments on commit 2f29c5f

Please sign in to comment.