1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Check Multipath status only if gateway up

This commit is contained in:
Ycarus 2018-06-28 15:44:55 +02:00
parent 848bb74e16
commit af13d7f2c9
2 changed files with 18 additions and 18 deletions

View file

@ -1,10 +1,10 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
add_list dhcp.dnsmasq.ipset='/multipath-tcp.org/ss_rules_dst_bypass'
add_list dhcp.@dnsmasq[-1].ipset='/multipath-tcp.org/ss_rules_dst_bypass'
commit dhcp
EOF
curl -s -4 -m 5 --interface $1 http://www.multipath-tcp.org
curl -s -4 -m 3 --interface $1 http://www.multipath-tcp.org
uci -q batch <<-EOF >/dev/null
del_list dhcp.dnsmasq.ipset='/multipath-tcp.org/ss_rules_dst_bypass'
del_list dhcp.@dnsmasq[-1].ipset='/multipath-tcp.org/ss_rules_dst_bypass'
commit dhcp
EOF