You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ ~ $ node --inspect="127.0.0.1:9876" -e "setTimeout(function() { console.log('yes'); }, 30000)"
Debugger listening on port 9876.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9876/b41558bd-24a7-4828-ab57-16f7f7f231fa
and run
➜ ~ $ netstat -lpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9876 0.0.0.0:* LISTEN 19879/node
node writes that he listens to 127.0.0.1 and actually listens to 0.0.0.0
I can confirm what you're seeing and it's no surprise because the bind address is hard-coded to 0.0.0.0.
That was fixed as part of ongoing work in ba776b3 but the inspector in v6.x had been frozen before that. It never moved out of experimental status due to limitations in V8 5.1.
v6.x is in maintenance mode now and this issue doesn't qualify as a security bug because the inspector is experimental, so I guess it remains to be seen what can be done.
We won't/can't back-port all the work that has gone into the inspector since then and unilaterally changing the bind address to 127.0.0.1 will probably break some users but it should be possible to thread through debug_host from src/node.cc to src/inspector_agent.cc. Pull requests welcome.
Activity
bnoordhuis commentedon Jun 15, 2018
I can confirm what you're seeing and it's no surprise because the bind address is hard-coded to
0.0.0.0.That was fixed as part of ongoing work in ba776b3 but the inspector in v6.x had been frozen before that. It never moved out of experimental status due to limitations in V8 5.1.
v6.x is in maintenance mode now and this issue doesn't qualify as a security bug because the inspector is experimental, so I guess it remains to be seen what can be done.
We won't/can't back-port all the work that has gone into the inspector since then and unilaterally changing the bind address to 127.0.0.1 will probably break some users but it should be possible to thread through
debug_hostfrom src/node.cc to src/inspector_agent.cc. Pull requests welcome.inspector: don't bind to 0.0.0.0 by default
bengl commentedon Nov 29, 2018
Closing since this is fixed now.