mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
No errors for ipset
This commit is contained in:
parent
ba819f9afe
commit
efe7a7faa4
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
checkip=$(dig +short A ip.openmptcprouter.com | tr -d "\n")
|
||||
ipset add ss_rules_dst_bypass $checkip
|
||||
ipset add ss_rules_dst_bypass $checkip > /dev/null 2>&1
|
||||
curl -s -4 -m 3 --interface $1 http://ip.openmptcprouter.com
|
||||
ipset del ss_rules_dst_bypass $checkip
|
||||
ipset del ss_rules_dst_bypass $checkip > /dev/null 2>&1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
multipathip=$(dig +short A multipath-tcp.org | tr -d "\n")
|
||||
ipset add ss_rules_dst_bypass $multipathip
|
||||
ipset add ss_rules_dst_bypass $multipathip > /dev/null 2>&1
|
||||
curl -s -4 -m 3 --interface $1 http://www.multipath-tcp.org
|
||||
ipset del ss_rules_dst_bypass $multipathip
|
||||
ipset del ss_rules_dst_bypass $multipathip > /dev/null 2>&1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue