From decc32e7e6fc729e2aec7adc46949b0f63bc3a04 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Wed, 7 Dec 2022 10:52:08 +0300 Subject: [PATCH] Sorted the instances out https://github.com/libredirect/libredirect/issues/537 --- src/assets/javascripts/utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/assets/javascripts/utils.js b/src/assets/javascripts/utils.js index 4dd537f..2b69e9a 100644 --- a/src/assets/javascripts/utils.js +++ b/src/assets/javascripts/utils.js @@ -103,6 +103,11 @@ async function processDefaultCustomInstances(service, frontend, network, documen `, ...redirects[frontend][network] + .sort((a, b) => + (cloudflareBlackList.includes(a) && !cloudflareBlackList.includes(b)) + || + (authenticateBlackList.includes(a) && !authenticateBlackList.includes(b)) + ) .map(x => { const cloudflare = cloudflareBlackList.includes(x) ? ' cloudflare' : "" const authenticate = authenticateBlackList.includes(x) ? ' authenticate' : ""