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:
idk
2020-03-23 18:02:23 -04:00
parent 50ff84111d
commit 7f3b6c7359
8 changed files with 249 additions and 191 deletions

View File

@@ -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" ||