From 3a4efcc1f8c91e3c81a0598457e13a4b90adf818 Mon Sep 17 00:00:00 2001 From: xboard Date: Tue, 16 Jan 2024 17:02:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dvless=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E4=BD=BF=E7=94=A8tls=E6=97=B6=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=8A=B1=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Protocols/General.php | 4 ++-- app/Protocols/Passwall.php | 4 ++-- app/Protocols/SSRPlus.php | 4 ++-- app/Protocols/Shadowrocket.php | 4 ++-- app/Protocols/Stash.php | 2 +- app/Protocols/V2rayN.php | 4 ++-- app/Protocols/V2rayNG.php | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/Protocols/General.php b/app/Protocols/General.php index 99bbf20..4d2a585 100644 --- a/app/Protocols/General.php +++ b/app/Protocols/General.php @@ -124,8 +124,8 @@ class General if ($server['tls']) { switch($server['tls']){ case 1: - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) $config['sni'] = $tlsSettings['serverName']; $config['security'] = "tls"; diff --git a/app/Protocols/Passwall.php b/app/Protocols/Passwall.php index a393c6b..b3228b2 100644 --- a/app/Protocols/Passwall.php +++ b/app/Protocols/Passwall.php @@ -112,8 +112,8 @@ class Passwall if ($server['tls']) { switch($server['tls']){ case 1: - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) $config['sni'] = $tlsSettings['serverName']; $config['security'] = "tls"; diff --git a/app/Protocols/SSRPlus.php b/app/Protocols/SSRPlus.php index 1f36bf6..608c738 100644 --- a/app/Protocols/SSRPlus.php +++ b/app/Protocols/SSRPlus.php @@ -100,8 +100,8 @@ class SSRPlus if ($server['tls']) { switch($server['tls']){ case 1: - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) $config['sni'] = $tlsSettings['serverName']; $config['security'] = "tls"; diff --git a/app/Protocols/Shadowrocket.php b/app/Protocols/Shadowrocket.php index 69c40e1..47df0f8 100644 --- a/app/Protocols/Shadowrocket.php +++ b/app/Protocols/Shadowrocket.php @@ -154,8 +154,8 @@ class Shadowrocket switch($server['tls']){ case 1: $config['tls'] = 1; - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure'])) $config['allowInsecure'] = (int)$tlsSettings['allowInsecure']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) diff --git a/app/Protocols/Stash.php b/app/Protocols/Stash.php index af95b9b..a2b0ea6 100644 --- a/app/Protocols/Stash.php +++ b/app/Protocols/Stash.php @@ -184,7 +184,7 @@ class Stash $array['tls'] = true; switch($server['tls']){ case 1: - if ($server['tlsSettings']) { + if ($server['tls_settings']) { $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name'])) $array['servername'] = $tlsSettings['server_name']; diff --git a/app/Protocols/V2rayN.php b/app/Protocols/V2rayN.php index c7eedf5..4f4c196 100644 --- a/app/Protocols/V2rayN.php +++ b/app/Protocols/V2rayN.php @@ -128,8 +128,8 @@ class V2rayN if ($server['tls']) { switch($server['tls']){ case 1: - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) $config['sni'] = $tlsSettings['serverName']; $config['security'] = "tls"; diff --git a/app/Protocols/V2rayNG.php b/app/Protocols/V2rayNG.php index 7ed5285..61a858d 100644 --- a/app/Protocols/V2rayNG.php +++ b/app/Protocols/V2rayNG.php @@ -112,8 +112,8 @@ class V2rayNG if ($server['tls']) { switch($server['tls']){ case 1: - if ($server['tlsSettings']) { - $tlsSettings = $server['tlsSettings']; + if ($server['tls_settings']) { + $tlsSettings = $server['tls_settings']; if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName'])) $config['sni'] = $tlsSettings['serverName']; $config['security'] = "tls";