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

オープン 初心者向け
#72 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
35

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

A21-devs/Virtual-Machine-Manager のほかの issue

A21-devs/Virtual-Machine-Manager の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。