nodeSolidServer / nodeSolidServer/node-solid-server

startup message about listening address incorrectly reports host as localhost

未关闭
#1,449 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先定位报告监听地址的启动消息,并将其与 netstat 显示的服务器在 Docker 中的实际监听行为进行比较。检查帮助输出中是否已有 listen-address 选项;当消息准确反映绑定地址,并且所有受支持的配置都已记录时,即表示完成。

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

评估

技术栈
javascript, nodejs
领域
backend, networking
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

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