nodeSolidServer / nodeSolidServer/node-solid-server

startup message about listening address incorrectly reports host as localhost

オープン
#1,449 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、リッスンしているアドレスを報告する起動メッセージを特定し、netstat に表示されるサーバーの実際の Docker でのリッスン動作と比較します。既存の listen-address オプションがあるかヘルプ出力を確認します。メッセージが bind アドレスを正確に反映し、サポートされている設定がすべてドキュメント化されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, nodejs
領域
backend, networking
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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