fix: 修复vless节点使用tls时订阅抱错的问题

This commit is contained in:
xboard 2024-01-16 17:02:42 +08:00
parent f610f45523
commit 3a4efcc1f8
7 changed files with 13 additions and 13 deletions

View File

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

View File

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

View File

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

View File

@ -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']))

View File

@ -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'];

View File

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

View File

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