no message
This commit is contained in:
parent
3c8c875d8c
commit
2e95e47b02
@ -91,7 +91,7 @@ final class Clash extends Base
|
|||||||
];
|
];
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 101:
|
case 11:
|
||||||
$v2_port = $node_custom_config['offset_port_user'] ??
|
$v2_port = $node_custom_config['offset_port_user'] ??
|
||||||
($node_custom_config['offset_port_node'] ?? 443);
|
($node_custom_config['offset_port_node'] ?? 443);
|
||||||
$network = $node_custom_config['network'] ?? 'tcp';
|
$network = $node_custom_config['network'] ?? 'tcp';
|
||||||
@ -120,7 +120,7 @@ final class Clash extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 111:
|
||||||
$v2_port = $node_custom_config['offset_port_user'] ??
|
$v2_port = $node_custom_config['offset_port_user'] ??
|
||||||
($node_custom_config['offset_port_node'] ?? 443);
|
($node_custom_config['offset_port_node'] ?? 443);
|
||||||
$security = $node_custom_config['security'] ?? 'none';
|
$security = $node_custom_config['security'] ?? 'none';
|
||||||
|
|||||||
@ -83,7 +83,7 @@ final class SingBox extends Base
|
|||||||
$node['tls'] = array_filter($node['tls']);
|
$node['tls'] = array_filter($node['tls']);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 101:
|
case 11:
|
||||||
$v2_port = $node_custom_config['offset_port_user'] ??
|
$v2_port = $node_custom_config['offset_port_user'] ??
|
||||||
($node_custom_config['offset_port_node'] ?? 443);
|
($node_custom_config['offset_port_node'] ?? 443);
|
||||||
// $transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network'];
|
// $transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network'];
|
||||||
@ -126,7 +126,7 @@ final class SingBox extends Base
|
|||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 111:
|
||||||
$v2_port = $node_custom_config['offset_port_user'] ??
|
$v2_port = $node_custom_config['offset_port_user'] ??
|
||||||
($node_custom_config['offset_port_node'] ?? 443);
|
($node_custom_config['offset_port_node'] ?? 443);
|
||||||
$transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network'];
|
$transport = ($node_custom_config['network'] ?? '') === 'tcp' ? '' : $node_custom_config['network'];
|
||||||
|
|||||||
@ -26,7 +26,7 @@ final class V2Ray extends Base
|
|||||||
foreach ($nodes_raw as $node_raw) {
|
foreach ($nodes_raw as $node_raw) {
|
||||||
$node_custom_config = json_decode($node_raw->custom_config, true);
|
$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);
|
$v2_port = $node_custom_config['offset_port_user'] ?? ($node_custom_config['offset_port_node'] ?? 443);
|
||||||
$security = $node_custom_config['security'] ?? 'none';
|
$security = $node_custom_config['security'] ?? 'none';
|
||||||
$network = $node_custom_config['network'] ?? '';
|
$network = $node_custom_config['network'] ?? '';
|
||||||
@ -55,7 +55,7 @@ final class V2Ray extends Base
|
|||||||
$port = (int) ($node_custom_config['offset_port_user'] ?? 0);
|
$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;
|
$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';
|
$network = $node_custom_config['network'] ?? 'tcp';
|
||||||
$reality_opts = $node_custom_config['reality-opts'] ?? [];
|
$reality_opts = $node_custom_config['reality-opts'] ?? [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user