no message
This commit is contained in:
parent
462344a0c1
commit
becb763c6a
@ -26,7 +26,10 @@ final class SS extends Base
|
|||||||
$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 === 0) {
|
if ((int) $node_raw->sort === 0) {
|
||||||
$links .= base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . (int) $node_custom_config['offset_port_user']) . '#' .
|
|
||||||
|
$port = (int) ($node_custom_config['offset_port_user'] ?? 0);
|
||||||
|
|
||||||
|
$links .= base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port . '#' .
|
||||||
$node_raw->name . PHP_EOL;
|
$node_raw->name . PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -51,38 +51,11 @@ final class V2Ray extends Base
|
|||||||
|
|
||||||
$links .= 'vmess://' . base64_encode(json_encode($v2rayn_array)) . PHP_EOL;
|
$links .= 'vmess://' . base64_encode(json_encode($v2rayn_array)) . PHP_EOL;
|
||||||
} else if ((int) $node_raw->sort === 0) {
|
} else if ((int) $node_raw->sort === 0) {
|
||||||
// case 0:
|
|
||||||
// $node = [
|
$port = (int) ($node_custom_config['offset_port_user'] ?? 0);
|
||||||
// 'protocol' => 'shadowsocks',
|
|
||||||
// 'settings' => [
|
$links .= 'ss://' . base64_encode($user->method . ':' . $user->passwd . '@' . $node_raw->server . ':' . $port) . '#' .
|
||||||
// 'address' => $node_raw->server,
|
$node_raw->name . PHP_EOL;
|
||||||
// 'port' => (int) $user->port,
|
|
||||||
// 'method' => $user->method,
|
|
||||||
// 'password' => $user->passwd,
|
|
||||||
// ],
|
|
||||||
// 'tag' => $node_raw->name,
|
|
||||||
// ];
|
|
||||||
//
|
|
||||||
// break;
|
|
||||||
|
|
||||||
$ss_array = [
|
|
||||||
// 'v' => '2',
|
|
||||||
'ps' => $node_raw->name,
|
|
||||||
'add' => $node_raw->server,
|
|
||||||
'port' => (int) $node_custom_config['offset_port_user'],
|
|
||||||
'encryption' => $user->method,
|
|
||||||
'password' => $user->passwd,
|
|
||||||
|
|
||||||
// 'id' => $user->uuid,
|
|
||||||
// 'aid' => 0,
|
|
||||||
// 'net' => $network,
|
|
||||||
// 'type' => $header_type,
|
|
||||||
// 'host' => $host,
|
|
||||||
// 'path' => $path,
|
|
||||||
// 'tls' => $security,
|
|
||||||
];
|
|
||||||
|
|
||||||
$links .= 'shadowsocks://' . base64_encode(json_encode($ss_array)) . PHP_EOL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user