diff --git a/bookmarks.js b/bookmarks.js index 55a82d0..3dcb674 100644 --- a/bookmarks.js +++ b/bookmarks.js @@ -46,7 +46,8 @@ gettingInfo.then(got => { createBookmark.then(onCreated); } else { var createBookmark = browser.bookmarks.create({ - url: "http://localhost:7657/i2psnark", + url: + "http://" + control_host + ":" + control_port + "/i2psnark", title: "Bittorrent", parentId: bookmarkToolbar[0].id }); @@ -74,7 +75,7 @@ gettingInfo.then(got => { createBookmark.then(onCreated); } else { var createBookmark = browser.bookmarks.create({ - url: "http://localhost:7657/webmail", + url: "http://" + control_host + ":" + control_port + "/webmail", title: "Web Mail", parentId: bookmarkToolbar[0].id }); @@ -103,7 +104,12 @@ gettingInfo.then(got => { createBookmark.then(onCreated); } else { var createBookmark = browser.bookmarks.create({ - url: "http://localhost:7657/i2ptunnelmgr", + url: + "http://" + + control_host + + ":" + + control_port + + "/i2ptunnelmgr", title: "Hidden Services Manager", parentId: bookmarkToolbar[0].id }); diff --git a/host.js b/host.js index 6a1ca9d..a17f069 100644 --- a/host.js +++ b/host.js @@ -86,7 +86,10 @@ function routerHost(url) { hostname = url.split("/")[0]; path = url.replace(hostname + "/", ""); } - if (hostname === "127.0.0.1:7657") { + if (hostname === control_host + ":" + control_port) { + console.log("(hostcheck) router console found on configured ports"); + return pathcheck(path); + } else if (hostname === "127.0.0.1:7657") { return pathcheck(path); } else if (hostname === "localhost:7657") { return pathcheck(path); diff --git a/info.js b/info.js index 86eed14..eca5e92 100644 --- a/info.js +++ b/info.js @@ -121,7 +121,7 @@ function goHome() { function goTunnel() { let createData = { - url: "http://127.0.0.1:7657/i2ptunnel" + url: "http://" + control_host + ":" + control_port + "/i2ptunnel" }; console.log("visiting homepage"); let creating = browser.tabs.create(createData); @@ -129,7 +129,7 @@ function goTunnel() { function goMail() { let createData = { - url: "http://127.0.0.1:7657/susimail" + url: "http://" + control_host + ":" + control_port + "/susimail" }; console.log("visiting homepage"); let creating = browser.tabs.create(createData); @@ -137,7 +137,7 @@ function goMail() { function goSnark() { let createData = { - url: "http://127.0.0.1:7657/i2psnark" + url: "http://" + control_host + ":" + control_port + "/i2psnark" }; console.log("visiting homepage"); let creating = browser.tabs.create(createData); diff --git a/privacy.js b/privacy.js index 2d630de..0fa96c1 100644 --- a/privacy.js +++ b/privacy.js @@ -180,7 +180,8 @@ function AssurePeerConnection() { rtc.then(assure); } -AssurePeerConnection(); +browser.windows.onCreated.addListener(ResetPeerConnection); +//AssurePeerConnection(); function ResetDisableSavePasswords() { browser.privacy.services.passwordSavingEnabled.set({ diff --git a/proxy.js b/proxy.js index f61c34b..381ca6c 100644 --- a/proxy.js +++ b/proxy.js @@ -240,7 +240,7 @@ function SetupSettings() { if (storedSettings.control_port != undefined) { contro_port = storedSettings.control_port; } else { - control_port = "4445"; + control_port = "7657"; storedSettings.control_port = control_port; } console.log("Initialising Control Port", storedSettings.control_port); @@ -317,7 +317,7 @@ function getControlHost() { function getControlPort() { if (control_port == undefined) { - return "4444"; + return "7657"; } return control_port; }