diff --git a/Makefile b/Makefile index 455058f..a1d41d8 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ uninstall: clobber: rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi -VERSION=1.16 +VERSION=1.17 xpi: mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi diff --git a/i2psetproxy.js@eyedeekay.github.io.xpi b/i2psetproxy.js@eyedeekay.github.io.xpi index 85e9637..02b851c 100644 Binary files a/i2psetproxy.js@eyedeekay.github.io.xpi and b/i2psetproxy.js@eyedeekay.github.io.xpi differ diff --git a/manifest.json b/manifest.json index 84c808b..08ddff4 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ "permissions": ["theme", "proxy", "privacy", "storage"], "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "1.16", + "version": "1.17", "description": "__MSG_extensionDescription__", "icons": { "48": "icons/toopie.png" diff --git a/options/options.js b/options/options.js index 7f41f0e..3031f37 100644 --- a/options/options.js +++ b/options/options.js @@ -83,7 +83,12 @@ function onError(e) { console.error(e); } +var controlHost = "127.0.0.1" //getControlHost() +var controlPort = "7951" //getControlPort(); + function setupProxy() { + var controlHost = getControlHost(); + var controlPort = getControlPort(); if (isFirefox()) { if (getScheme() == "http") { var proxySettings = { @@ -170,7 +175,7 @@ function updateUI(restoredSettings) { const controlportitem = document.getElementById("controlport") controlportitem.value = restoredSettings.control_port console.log("showing control port:", controlportitem.value) - + setupProxy() } function SetHostText(){ @@ -219,10 +224,8 @@ SetControlHelpText() function RefreshIdentity(){ console.log("Generating new identity") - const controlhost = getControlHost(); - const controlport = getControlPort(); const Http = new XMLHttpRequest(); - const url='http://' + controlhost + ":" + controlport + const url='http://' + controlHost + ":" + controlPort Http.open("GET", url); Http.send(); Http.onreadystatechange=(e)=>{