diff --git a/src/Services/Subscribe/Clash.php b/src/Services/Subscribe/Clash.php index b7e048287..5cb6bd14e 100755 --- a/src/Services/Subscribe/Clash.php +++ b/src/Services/Subscribe/Clash.php @@ -91,7 +91,7 @@ final class Clash extends Base ]; break; - case 101: + case 11: $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443); $network = $node_custom_config['network'] ?? 'tcp'; @@ -120,7 +120,7 @@ final class Clash extends Base } break; - case 11: + case 111: $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443); $security = $node_custom_config['security'] ?? 'none'; diff --git a/src/Services/Subscribe/SingBox.php b/src/Services/Subscribe/SingBox.php index f83f5c6d3..ef75e756c 100755 --- a/src/Services/Subscribe/SingBox.php +++ b/src/Services/Subscribe/SingBox.php @@ -83,7 +83,7 @@ final class SingBox extends Base $node['tls'] = array_filter($node['tls']); break; - case 101: + case 11: $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443); // $transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network']; @@ -126,7 +126,7 @@ final class SingBox extends Base } break; - case 11: + case 111: $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443); $transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network']; diff --git a/src/Services/Subscribe/V2Ray.php b/src/Services/Subscribe/V2Ray.php index 8ecb72b10..4de9e8098 100755 --- a/src/Services/Subscribe/V2Ray.php +++ b/src/Services/Subscribe/V2Ray.php @@ -26,7 +26,7 @@ final class V2Ray extends Base foreach ($nodes_raw as $node_raw) { $node_custom_config = json_decode($node_raw->custom_config, true); - if ((int) $node_raw->sort === 11) { + if ((int) $node_raw->sort === 111) { $v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443); $security = $node_custom_config['security'] ?? 'none'; $network = $node_custom_config['network'] ?? ''; @@ -55,7 +55,7 @@ final class V2Ray extends Base $port = (int) ($node_custom_config['offset_port_user'] ?? 0); $links .= 'ss://' . base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port) . '#' . rawurlencode($node_raw->name) . PHP_EOL; - } else if ((int) $node_raw->sort === 101) { + } else if ((int) $node_raw->sort === 11) { $network = $node_custom_config['network'] ?? 'tcp'; $reality_opts = $node_custom_config['reality-opts'] ?? [];