Merge branch 'dispatch' into 'master'

disable proxy on requests to self for dispatch

See merge request idk/I2P-in-Private-Browsing-Mode-Firefox!9
This commit is contained in:
idk
2020-11-11 03:03:56 +00:00
3 changed files with 13 additions and 6 deletions

View File

@@ -37,11 +37,11 @@ clean: rc clean-artifacts
## EVEN RELEASES are AMO RELEASES
## ODD RELEASES are SELFHOSTED RELEASES
MOZ_VERSION=0.82
VERSION=0.81
MOZ_VERSION=0.84
VERSION=0.83
## INCREMENT THIS EVERY TIME YOU DO A RELEASE
LAST_VERSION=0.79
LAST_VERSION=0.81
YELLOW=F7E59A
ORANGE=FFC56D

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
i2psetproxy.js (0.83-1) UNRELEASED; urgency=low
* Add a tab for I2P-Native Dispatch
-- idk <hankhill19580@gmail.com> Sat, 10 NOV 2020 22:00:01 -0400
i2psetproxy.js (0.81-1) UNRELEASED; urgency=low
* X-I2P-TorrentLocation header

View File

@@ -1,5 +1,6 @@
var titlepref = chrome.i18n.getMessage('titlePreface');
var webpref = chrome.i18n.getMessage('webPreface');
var ircpref = chrome.i18n.getMessage('ircPreface');
var routerpref = chrome.i18n.getMessage('routerPreface');
var routerprefpriv = chrome.i18n.getMessage('routerPrefacePrivate');
@@ -48,6 +49,9 @@ var handleContextProxyRequest = async function(requestDetails) {
host: getHost(),
port: getPort(),
};
if (requestDetails.url.includes(':7669')) {
proxy = null;
}
} else if (context.name == routerpref) {
if (routerHost(requestDetails.url)) {
proxy = null;
@@ -69,9 +73,6 @@ var handleContextProxyRequest = async function(requestDetails) {
};
}
}
console.log('(proxy)', context.name);
console.log('Using', proxy.type);
console.log('proxy ', proxy.host + ':' + proxy.port);
return proxy;
}
}