diff --git a/Makefile b/Makefile index e4951b2..8bebf0d 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ clobber: rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi xpi: - mv ~/Downloads/i2p_proxy*.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi + mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi cp: cp ../i2psetproxy.js@eyedeekay.github.io.xpi ./i2psetproxy.js@eyedeekay.github.io.xpi @@ -29,7 +29,7 @@ cp: VERSION=1.15 version: - sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": $(VERSION)|g' manifest.json + sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(VERSION)\",|g' manifest.json zip: version zip --exclude="./i2psetproxy.js@eyedeekay.github.io.xpi" \ diff --git a/i2psetproxy.js@eyedeekay.github.io.xpi b/i2psetproxy.js@eyedeekay.github.io.xpi index 15f8238..df9d996 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 988f4fb..bf3bb92 100644 --- a/manifest.json +++ b/manifest.json @@ -8,7 +8,7 @@ "permissions": ["theme", "proxy", "privacy", "storage"], "manifest_version": 2, "name": "__MSG_extensionName__", - "version": 1.15 + "version": "1.15", "description": "__MSG_extensionDescription__", "icons": { "48": "icons/toopie.png" diff --git a/proxy.js b/proxy.js index 4ad050e..56c70d2 100644 --- a/proxy.js +++ b/proxy.js @@ -16,6 +16,9 @@ browser.privacy.network.webRTCIPHandlingPolicy.set({value: "disable_non_proxied_ console.log("Preliminarily disabled WebRTC.") +var controlHost = "127.0.0.1" +var controlPort = "7951" + function setupProxy() { if (isFirefox()) { if (getScheme() == "http") { @@ -63,8 +66,8 @@ function setupProxy() { function RefreshIdentity(){ console.log("Generating new identity") - const controlhost = getControlHost(); - const controlport = getControlPort(); + const controlhost = controlHost; + const controlport = controlPort; const Http = new XMLHttpRequest(); const url='http://' + controlhost + ":" + controlport Http.open("GET", url);