Fix bug with i2p+ console isolation for danrobi, which also requires creating a contextual identity for MuWire which makes this a pretty good commit to write a blog post about
This commit is contained in:
8
host.js
8
host.js
@@ -8,7 +8,9 @@ function proxyHost(url) {
|
||||
if (hostname == "proxy.i2p") {
|
||||
return true;
|
||||
}
|
||||
if (hostname == "c6lilt4cr5x7jifxridpkesf2zgfwqfchtp6laihr4pdqomq25iq.b32.i2p") {
|
||||
if (
|
||||
hostname == "c6lilt4cr5x7jifxridpkesf2zgfwqfchtp6laihr4pdqomq25iq.b32.i2p"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -60,6 +62,7 @@ function i2pHost(url) {
|
||||
function routerHost(url) {
|
||||
let hostname = "";
|
||||
let path = "";
|
||||
console.log("(urlcheck)", url);
|
||||
function pathcheck(str) {
|
||||
if (str != undefined) {
|
||||
let final = str.split("/")[0];
|
||||
@@ -76,6 +79,9 @@ function routerHost(url) {
|
||||
} else if (final === "webmail" || final === "susimail") {
|
||||
console.log("(urlcheck) application path", final);
|
||||
return "webmail";
|
||||
} else if (final.startsWith("MuWire") && !final.contains("png")) {
|
||||
console.log("(urlcheck) application path", final);
|
||||
return "muwire";
|
||||
} else if (
|
||||
final === "home" ||
|
||||
final === "console" ||
|
||||
|
Reference in New Issue
Block a user