新增转发导入,导出,批量添加功能

This commit is contained in:
qaq
2025-08-05 17:28:42 +08:00
parent cb60bcc1b0
commit 8e4b69e335
9 changed files with 544 additions and 60 deletions
@@ -676,7 +676,7 @@ public class TunnelServiceImpl extends ServiceImpl<TunnelMapper, Tunnel> impleme
* @return TCP端口号
*/
private int getOutNodeTcpPort(Long tunnelId) {
List<Forward> forwards = forwardService.list(new QueryWrapper<Forward>().eq("tunnel_id", tunnelId));
List<Forward> forwards = forwardService.list(new QueryWrapper<Forward>().eq("tunnel_id", tunnelId).eq("status", TUNNEL_STATUS_ACTIVE));
if (!forwards.isEmpty()) {
return forwards.get(0).getOutPort();
}