From 2791b360c11324f7c9ed83350f264c500ade4fe8 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 25 May 2017 19:00:24 -0700 Subject: inspector: allow --inspect=host:port from js PR-URL: https://github.com/nodejs/node/pull/13228 Reviewed-By: Michael Dawson Reviewed-By: Refael Ackermann Reviewed-By: James M Snell --- src/inspector_io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inspector_io.h') diff --git a/src/inspector_io.h b/src/inspector_io.h index 9ea1e0a785..6ef2ea54c4 100644 --- a/src/inspector_io.h +++ b/src/inspector_io.h @@ -72,6 +72,8 @@ class InspectorIo { } int port() const { return port_; } + std::string host() const { return options_.host_name(); } + std::vector GetTargetIds() const; private: template @@ -152,7 +154,6 @@ class InspectorIo { std::string script_name_; std::string script_path_; - const std::string id_; const bool wait_for_connect_; int port_; -- cgit v1.2.3