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

More info and checks in status page

This commit is contained in:
Ycarus 2018-07-24 17:08:27 +02:00
parent 05c4fe5ad0
commit c3f51af9a2
5 changed files with 89 additions and 21 deletions

View file

@ -0,0 +1,5 @@
#!/bin/sh
checkip=$(dig +short A ip.openmptcprouter.com | tr -d "\n")
ipset add ss_rules_dst_bypass $checkip
curl -s -4 -m 3 --interface $1 http://ip.openmptcprouter.com
ipset del ss_rules_dst_bypass $checkip

View file

@ -1,10 +1,5 @@
#!/bin/sh
uci -q batch <<-EOF >/dev/null
add_list dhcp.@dnsmasq[-1].ipset='/multipath-tcp.org/ss_rules_dst_bypass'
commit dhcp
EOF
multipathip=$(dig +short A multipath-tcp.org | tr -d "\n")
ipset add ss_rules_dst_bypass $multipathip
curl -s -4 -m 3 --interface $1 http://www.multipath-tcp.org
uci -q batch <<-EOF >/dev/null
del_list dhcp.@dnsmasq[-1].ipset='/multipath-tcp.org/ss_rules_dst_bypass'
commit dhcp
EOF
ipset del ss_rules_dst_bypass $multipathip