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";