mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
inspector: do not prompt to use localhost
There are multiple reports of Windows7 not being able to resolve localhost on some setups (web search also confirms that). This change will advertise "127.0.0.1" as inspector host name. Fixes: https://github.com/nodejs/node/issues/9382 Fixes: https://github.com/nodejs/node/issues/9188 PR-URL: https://github.com/nodejs/node/pull/9451 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
032533954b
commit
173b088e1a
2 files changed
+2
-2
No files matched your search
@@ -39,7 +39,7 @@ static const uint8_t PROTOCOL_JSON[] = {
|
||||
|
||||
std::string GetWsUrl(int port, const std::string& id) {
|
||||
char buf[1024];
|
||||
snprintf(buf, sizeof(buf), "localhost:%d/%s", port, id.c_str());
|
||||
snprintf(buf, sizeof(buf), "127.0.0.1:%d/%s", port, id.c_str());
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ function checkListResponse(err, response) {
|
||||
assert.ok(response[0]['devtoolsFrontendUrl']);
|
||||
assert.ok(
|
||||
response[0]['webSocketDebuggerUrl']
|
||||
.match(/ws:\/\/localhost:\d+\/[0-9A-Fa-f]{8}-/));
|
||||
.match(/ws:\/\/127.0.0.1:\d+\/[0-9A-Fa-f]{8}-/));
|
||||
}
|
||||
|
||||
function checkVersion(err, response) {
|
||||
|
||||
Reference in new issue
Block a user