From c3bfe62ca995cf5b28ee2a714cedb45992e67e37 Mon Sep 17 00:00:00 2001 From: xboard <147830212+cedar2025@users.noreply.github.com> Date: Sat, 22 Feb 2025 21:37:38 +0800 Subject: [PATCH] fix(subscribe): correct vmess websocket cofiguration for Surge compatibility --- app/Protocols/Surge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Protocols/Surge.php b/app/Protocols/Surge.php index 0cf6701..4b8931f 100644 --- a/app/Protocols/Surge.php +++ b/app/Protocols/Surge.php @@ -135,7 +135,7 @@ class Surge implements ProtocolInterface array_push($config, "sni={$tlsSettings['server_name']}"); } } - if (data_get($protocol_settings, 'network_settings.network') === 'ws') { + if (data_get($protocol_settings, 'network') === 'ws') { array_push($config, 'ws=true'); if (data_get($protocol_settings, 'network_settings')) { $wsSettings = data_get($protocol_settings, 'network_settings');