Skip to content

Commit

Permalink
Add Captive Portal URLs check in available OMR-ByPass services
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Dec 2, 2024
1 parent 416af94 commit 02ba2a9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions omr-bypass/files/etc/uci-defaults/41_omr-bypass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02ba2a9

Please sign in to comment.