nodeSolidServer / nodeSolidServer/node-solid-server
startup message about listening address incorrectly reports host as localhost
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
When you start n-s-s it prints the following message:
Solid server (5.4.0) running on https://localhost:8443/
However, this is not technically correct. When I see 'localhost' I expect that the server would be listening only on 127.0.0.1. However, the server is actually listening on all addresses (0.0.0.0 / :: in ipv6). I can verify this by connecting to the container where I'm running it in docker:
/opt/solid $ netstat -ptnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.11:39681 0.0.0.0:* LISTEN -
tcp 0 0 :::8443 :::* LISTEN 14/node
(the :::8443 shows that it's listening on ipv6's wildcard address ::).
Ideally I would like to see this message say: "Solid server (5.4.0) running on https://0.0.0.0:8443/". As an additional enhancement, it might be nice to allow this listen address to be configured with an options flag. I can't see one in the help output.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先定位報告監聽位址的啟動訊息,並將其與 netstat 顯示的伺服器在 Docker 中的實際監聽行為進行比較。檢查說明輸出中是否已有 listen-address 選項;當訊息準確反映繫結位址,且所有受支援的設定都已記錄時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, nodejs
- 領域
- backend, networking
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100