Added Yggdrasil links in utils.

This commit is contained in:
Alexander Andreev 2022-07-27 19:23:24 +04:00
parent 9579bc3c10
commit ab4ec0216d
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -32,6 +32,13 @@ function getServiceByHost(host, service="") {
case "git": return "http://git.arav.i2p"; case "git": return "http://git.arav.i2p";
default: return "http://arav.i2p"; default: return "http://arav.i2p";
} }
else if (host.startsWith("[300")) // Yggdrasil
switch (service) {
case "radio": return "http://[300:a98d:d6d0:8a08::e]";
case "files": return "http://[300:a98d:d6d0:8a08::d]";
case "git": return "http://[300:a98d:d6d0:8a08::b]";
default: return "http://[300:a98d:d6d0:8a08::f]";
}
else else
switch (service) { switch (service) {
case "radio": return "https://radio.arav.top"; case "radio": return "https://radio.arav.top";