From 02ba2a9e8bb6f131517a22adc25a8183577c131b Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 2 Dec 2024 10:20:51 +0100 Subject: [PATCH] Add Captive Portal URLs check in available OMR-ByPass services --- omr-bypass/files/etc/uci-defaults/41_omr-bypass | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/omr-bypass/files/etc/uci-defaults/41_omr-bypass b/omr-bypass/files/etc/uci-defaults/41_omr-bypass index aa4f1f0772..b23bb30823 100755 --- a/omr-bypass/files/etc/uci-defaults/41_omr-bypass +++ b/omr-bypass/files/etc/uci-defaults/41_omr-bypass @@ -153,6 +153,19 @@ if [ "$(uci -q get omr-bypass.sky)" = "" ]; then commit omr-bypass EOF fi +if [ "$(uci -q get omr-bypass.captive_portal)" = "" ]; then + uci -q batch <<-EOF >/dev/null + set omr-bypass.captive_portal=proto + add_list omr-bypass.captive_portal.url='captive.apple.com' + add_list omr-bypass.captive_portal.url='connectivitycheck.gstatic.com' + add_list omr-bypass.captive_portal.url='clients3.google.com' + add_list omr-bypass.captive_portal.url='www.msftconnecttest.com' + add_list omr-bypass.captive_portal.url='www.msftncsi.com' + add_list omr-bypass.captive_portal.url='nmcheck.gnome.org' + add_list omr-bypass.captive_portal.url='networkcheck.kde.org' + commit omr-bypass + EOF +fi #if [ "$(uci -q get omr-bypass.global)" = "" ]; then # uci -q batch <<-EOF >/dev/null # set omr-bypass.global=global