add anytls support

This commit is contained in:
Fearless
2025-05-19 09:25:52 +08:00
parent f839e8b3f0
commit 711151c7d6
8 changed files with 148 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ class ClientController extends Controller
'trojan' => '[trojan]',
'tuic' => '[tuic]',
'socks' => '[socks]',
'anytls' => '[anytls]'
];
// 支持hy2 的客户端版本列表
@@ -48,7 +49,7 @@ class ClientController extends Controller
'flclash' => '0.8.0'
];
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2', 'tuic'];
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2', 'tuic', 'anytls'];
public function subscribe(Request $request)

View File

@@ -147,6 +147,11 @@ class UniProxyController extends Controller
'zero_rtt_handshake' => false,
'heartbeat' => "3s",
],
'anytls' => [
'server_port' => (int) $serverPort,
'server_name' => $protocolSettings['tls']['server_name'],
'padding_scheme' => $protocolSettings['padding_scheme'],
],
'socks' => [
'server_port' => (int) $serverPort,
],