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:
parent
05c4fe5ad0
commit
c3f51af9a2
5 changed files with 89 additions and 21 deletions
5
luci-app-openmptcprouter/root/bin/omr-ip-intf
Executable file
5
luci-app-openmptcprouter/root/bin/omr-ip-intf
Executable 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue