bug 1523104: remote: fix IPv6 loopback hostname; r=ochameau
authorAndreas Tolfsen <ato@sny.no>
Sun, 17 Feb 2019 17:33:59 +0000
changeset 521096 02050b4ee473
parent 521095 304bff20aa1f
child 521097 65f5581faf6a
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: fix IPv6 loopback hostname; r=ochameau
remote/RemoteAgent.js
--- a/remote/RemoteAgent.js
+++ b/remote/RemoteAgent.js
@@ -27,17 +27,17 @@ const ENABLED = "remote.enabled";
 const FORCE_LOCAL = "remote.force-local";
 const HTTPD = "remote.httpd";
 const SCHEME = `${HTTPD}.scheme`;
 const HOST = `${HTTPD}.host`;
 const PORT = `${HTTPD}.port`;
 
 const DEFAULT_HOST = "localhost";
 const DEFAULT_PORT = 9222;
-const LOOPBACKS = ["localhost", "127.0.0.1", "::1"];
+const LOOPBACKS = ["localhost", "127.0.0.1", "[::1]"];
 
 class ParentRemoteAgent {
   constructor() {
     this.server = null;
     this.targets = new Targets();
 
     this.tabs = new TabObserver({registerExisting: true});
     this.tabs.on("open", tab => this.targets.connect(tab.linkedBrowser));