mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
feat: Add TUIC protocol support and fix user filtering/export issues
This commit is contained in:
@@ -26,6 +26,7 @@ class ClientController extends Controller
|
||||
'shadowsocks' => '[ss]',
|
||||
'vmess' => '[vmess]',
|
||||
'trojan' => '[trojan]',
|
||||
'tuic' => '[tuic]',
|
||||
];
|
||||
|
||||
// 支持hy2 的客户端版本列表
|
||||
@@ -46,7 +47,7 @@ class ClientController extends Controller
|
||||
'flclash' => '0.8.0'
|
||||
];
|
||||
|
||||
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2'];
|
||||
private const ALLOWED_TYPES = ['vmess', 'vless', 'trojan', 'hysteria', 'shadowsocks', 'hysteria2', 'tuic'];
|
||||
|
||||
|
||||
public function subscribe(Request $request)
|
||||
|
||||
@@ -138,6 +138,15 @@ class UniProxyController extends Controller
|
||||
default => []
|
||||
}
|
||||
],
|
||||
'tuic' => [
|
||||
'version' => (int) $protocolSettings['version'],
|
||||
'server_port' => (int) $serverPort,
|
||||
'server_name' => $protocolSettings['tls']['server_name'],
|
||||
'congestion_control' => $protocolSettings['congestion_control'],
|
||||
'auth_timeout' => '3s',
|
||||
'zero_rtt_handshake' => false,
|
||||
'heartbeat' => "3s",
|
||||
],
|
||||
default => []
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user