From ab4ec0216dc5abaff29056c26e97977bc7e8c912 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 27 Jul 2022 19:23:24 +0400 Subject: [PATCH] Added Yggdrasil links in utils. --- shared/util.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shared/util.js b/shared/util.js index ff1d265..72c914d 100644 --- a/shared/util.js +++ b/shared/util.js @@ -32,6 +32,13 @@ function getServiceByHost(host, service="") { case "git": return "http://git.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 switch (service) { case "radio": return "https://radio.arav.top";