Skip to content

Hostname not allowed for inspect #1700

Closed
@abryzak

Description

@abryzak
  • Node.js Version: 8.12.0
  • OS: CentOS 7
  • Scope (install, code, runtime, meta, other?): Runtime
  • Module (and version) (if relevant): inspector

I'm running multiple Node instances in a virtual machine and would like to have them available for debugging by the host at any time. To achieve this, I start each of them with --inspect=0.0.0.0: where port is different for each instance.

I've also set up a hosts file entry to point to the VM for easier access in a browser and to support a local dev CA I have, but I found when trying to debug using the host name it fails, whereas IP address works. I found this commit which added the check for hostname being an IP address or empty, but wasn't sure why it was added as the commit comment doesn't really indicate the reason.

nodejs/node@583d5af

Is there a way to allow hostname access?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions