I think fix android?

This commit is contained in:
idk
2019-03-16 13:07:55 -04:00
parent 2a3e6c736e
commit f26732903a
4 changed files with 9 additions and 2 deletions

3
android-ext.pac Normal file
View File

@@ -0,0 +1,3 @@
function FindProxyForURL(url, host) {
return "PROXY 127.0.0.1:7950";
}

View File

@@ -8,7 +8,7 @@
"permissions": ["theme", "proxy", "privacy", "storage"],
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.20",
"version": "1.21",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/eyedeekay/i2psetproxy.js",
"icons": {

View File

@@ -34,7 +34,11 @@ function setupProxy() {
var controlPort = getControlPort();
if (isFirefox()) {
if (isDroid()) {
browser.proxy.register("android.pac");
if (getPort() == "7950") {
browser.proxy.register("android-ext.pac");
}else{
browser.proxy.register("android.pac");
}
}else{
if (getScheme() == "http") {
var proxySettings = {