Skip to content

Commit

Permalink
sync (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Dec 2, 2024
2 parents ce8d79e + 02ba2a9 commit e434be1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 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
6 changes: 3 additions & 3 deletions omr-tracker/files/usr/share/omr/post-tracking.d/003-up
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ if [ "$OMR_TRACKER_STATUS" = "ERROR" ]; then
exit 0
fi

if [ "$OMR_TRACKER_INTERFACE" != "omrvpn" ] && [ "$OMR_TRACKER_INTERFACE" != "omr6in4" ] && [ "$OMR_TRACKER_PREV_STATUS" = "$OMR_TRACKER_STATUS" ] && [ -n "$OMR_TRACKER_INTERFACE" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP" = "$OMR_TRACKER_DEVICE_IP" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP6" = "$OMR_TRACKER_DEVICE_IP6" ] && (([ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$(ip r show table 991337)" ]) || ([ -n "$OMR_TRACKER_DEVICE_GATEWAY6" ] && [ -n "$(ip -6 r show table 6991337)" ])); then
exit 0
fi
#if [ "$OMR_TRACKER_INTERFACE" != "omrvpn" ] && [ "$OMR_TRACKER_INTERFACE" != "omr6in4" ] && [ "$OMR_TRACKER_PREV_STATUS" = "$OMR_TRACKER_STATUS" ] && [ -n "$OMR_TRACKER_INTERFACE" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP" = "$OMR_TRACKER_DEVICE_IP" ] && [ "$OMR_TRACKER_PREV_DEVICE_IP6" = "$OMR_TRACKER_DEVICE_IP6" ] && (([ -n "$OMR_TRACKER_DEVICE_GATEWAY" ] && [ -n "$(ip r show table 991337)" ]) || ([ -n "$OMR_TRACKER_DEVICE_GATEWAY6" ] && [ -n "$(ip -6 r show table 6991337)" ])); then
# exit 0
#fi

SETROUTE=false

Expand Down

0 comments on commit e434be1

Please sign in to comment.