mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
fix: 修复vless节点使用tls时订阅抱错的问题
This commit is contained in:
parent
f610f45523
commit
3a4efcc1f8
@ -124,8 +124,8 @@ class General
|
|||||||
if ($server['tls']) {
|
if ($server['tls']) {
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
@ -112,8 +112,8 @@ class Passwall
|
|||||||
if ($server['tls']) {
|
if ($server['tls']) {
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
@ -100,8 +100,8 @@ class SSRPlus
|
|||||||
if ($server['tls']) {
|
if ($server['tls']) {
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
@ -154,8 +154,8 @@ class Shadowrocket
|
|||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
$config['tls'] = 1;
|
$config['tls'] = 1;
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
if (isset($tlsSettings['allowInsecure']) && !empty($tlsSettings['allowInsecure']))
|
||||||
$config['allowInsecure'] = (int)$tlsSettings['allowInsecure'];
|
$config['allowInsecure'] = (int)$tlsSettings['allowInsecure'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
|
@ -184,7 +184,7 @@ class Stash
|
|||||||
$array['tls'] = true;
|
$array['tls'] = true;
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tls_settings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
if (isset($tlsSettings['server_name']) && !empty($tlsSettings['server_name']))
|
||||||
$array['servername'] = $tlsSettings['server_name'];
|
$array['servername'] = $tlsSettings['server_name'];
|
||||||
|
@ -128,8 +128,8 @@ class V2rayN
|
|||||||
if ($server['tls']) {
|
if ($server['tls']) {
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
@ -112,8 +112,8 @@ class V2rayNG
|
|||||||
if ($server['tls']) {
|
if ($server['tls']) {
|
||||||
switch($server['tls']){
|
switch($server['tls']){
|
||||||
case 1:
|
case 1:
|
||||||
if ($server['tlsSettings']) {
|
if ($server['tls_settings']) {
|
||||||
$tlsSettings = $server['tlsSettings'];
|
$tlsSettings = $server['tls_settings'];
|
||||||
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
if (isset($tlsSettings['serverName']) && !empty($tlsSettings['serverName']))
|
||||||
$config['sni'] = $tlsSettings['serverName'];
|
$config['sni'] = $tlsSettings['serverName'];
|
||||||
$config['security'] = "tls";
|
$config['security'] = "tls";
|
||||||
|
Loading…
Reference in New Issue
Block a user