Port forwards: warn when another VM uses the same host port

未关闭 适合新手
#72 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, react, typescript
领域
backend, desktop

调研方向

从 issue #64 的端口转发编辑器入手,追踪它如何检查主机端口当前是否正在使用。renderer 已经有 VM 列表,因此检查如何访问它们已保存的转发规则。完成标准是:手动输入另一个 VM 正在使用的端口时,会显示一条语气较缓的警告,指出该 VM 的名称和协议,但不会阻止保存。

由索引模型根据 Issue 内容生成。

描述

enhancement ui

The port forward editor (#64) warns "In use on this PC right now" when something is listening on the host port. It doesn't know about other VMs in the library that are configured with the same port but aren't running. Two VMs can both forward 2222 to SSH, both save fine, and the problem only shows up when you start the second one while the first runs.

Clones already move their forwards to free ports (#65), so this is about forwards typed in by hand.

The editor could get the forwards of the other VMs (the renderer already has the whole list) and show something like "Kali also uses TCP 2222" as a softer warning. Not an error, since you might never run both at once.

主要语言
TypeScript
星标
3
派生
0
平均合并
2 分钟
30 天内合并 PR
35

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

A21-devs/Virtual-Machine-Manager 的其他 Issue

查看 A21-devs/Virtual-Machine-Manager 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。