mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add check that MPTCP is not blocked
This commit is contained in:
parent
dc9e238bb9
commit
5e7cf8bd7a
4 changed files with 34 additions and 3 deletions
10
luci-app-openmptcprouter/root/bin/omr-mptcp-intf
Executable file
10
luci-app-openmptcprouter/root/bin/omr-mptcp-intf
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add_list dhcp.dnsmasq.ipset='/multipath-tcp.org/ss_rules_dst_bypass'
|
||||
commit dhcp
|
||||
EOF
|
||||
curl -s -4 -m 5 --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'
|
||||
commit dhcp
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue