mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-30 00:06:38 +08:00
修复
This commit is contained in:
@@ -35,7 +35,7 @@ CREATE TABLE `forward` (
|
||||
`tunnel_id` int(10) NOT NULL,
|
||||
`in_port` int(10) NOT NULL,
|
||||
`out_port` int(10) DEFAULT NULL,
|
||||
`remote_addr` varchar(100) NOT NULL,
|
||||
`remote_addr` longtext,
|
||||
`strategy` varchar(100) NOT NULL DEFAULT 'fifo',
|
||||
`in_flow` bigint(20) NOT NULL DEFAULT '0',
|
||||
`out_flow` bigint(20) NOT NULL DEFAULT '0',
|
||||
|
||||
@@ -426,8 +426,8 @@ public class TunnelServiceImpl extends ServiceImpl<TunnelMapper, Tunnel> impleme
|
||||
// 验证协议类型
|
||||
String protocol = tunnelDto.getProtocol();
|
||||
if (StrUtil.isNotBlank(protocol) &&
|
||||
!protocol.equals("tls") && !protocol.equals("tcp") && !protocol.equals("mtls")) {
|
||||
return R.err("协议类型只能为tls、tcp或mtls");
|
||||
!protocol.equals("tls") && !protocol.equals("tcp") && !protocol.equals("mtls") && !protocol.equals("wss")) {
|
||||
return R.err("协议类型只能为tls、tcp、wss或mtls");
|
||||
}
|
||||
|
||||
// 验证出口节点是否存在
|
||||
|
||||
@@ -781,10 +781,10 @@ export default function TunnelPage() {
|
||||
variant="bordered"
|
||||
isDisabled={isEdit}
|
||||
>
|
||||
<SelectItem key="tls">TLS - 数据过墙选择这个(推荐)</SelectItem>
|
||||
<SelectItem key="wss">WSS - 数据过墙选择这个</SelectItem>
|
||||
<SelectItem key="tcp">TCP - IX隧道数据不过墙</SelectItem>
|
||||
<SelectItem key="mtls">mTLS - 多路复用,低延迟,有IP被封禁风险</SelectItem>
|
||||
<SelectItem key="tls">TLS</SelectItem>
|
||||
<SelectItem key="wss">WSS</SelectItem>
|
||||
<SelectItem key="tcp">TCP</SelectItem>
|
||||
<SelectItem key="mtls">mTLS</SelectItem>
|
||||
</Select>
|
||||
|
||||
<Select
|
||||
|
||||
@@ -137,9 +137,6 @@ curl -L https://your-panel-server:6365/agent/install | bash -s -- --server=your-
|
||||
|
||||
**出口配置**(仅隧道转发类型需要):
|
||||
- **协议类型**: 保持默认即可,如有特殊需求可选择:
|
||||
- TLS:数据过墙推荐选择
|
||||
- TCP:普通场景
|
||||
- MTLS: 多路复用的TLS
|
||||
- **出口节点**: 选择流量出口节点
|
||||
|
||||
4. 点击 **"创建"** 保存隧道
|
||||
|
||||
Reference in New Issue
Block a user