fix: pass the correct HostPort into the node inspector (#17380)

Fixes #17348
This commit is contained in:
Samuel Attard 2019-03-18 09:19:33 -07:00 committed by GitHub
parent db29978fe0
commit 5025c991ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View file

@ -59,7 +59,8 @@ void NodeDebugger::Start() {
}
const char* path = "";
if (inspector->Start(path, options, env_->inspector_host_port(),
if (inspector->Start(path, options,
std::make_shared<node::HostPort>(options.host_port),
true /* is_main */))
DCHECK(env_->inspector_agent()->IsListening());
}