I think fix android?
This commit is contained in:
3
android-ext.pac
Normal file
3
android-ext.pac
Normal file
@@ -0,0 +1,3 @@
|
||||
function FindProxyForURL(url, host) {
|
||||
return "PROXY 127.0.0.1:7950";
|
||||
}
|
||||
Binary file not shown.
@@ -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": {
|
||||
|
||||
6
proxy.js
6
proxy.js
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user