1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-13 19:11:51 +00:00
openmptcprouter-feeds/luci-app-openmptcprouter/root/bin/omr-ip-intf

6 lines
243 B
Text
Raw Normal View History

2018-07-24 15:08:27 +00:00
#!/bin/sh
checkip=$(dig +short A ip.openmptcprouter.com | tr -d "\n")
2018-07-27 14:57:32 +00:00
ipset add ss_rules_dst_bypass $checkip > /dev/null 2>&1
2018-07-24 15:08:27 +00:00
curl -s -4 -m 3 --interface $1 http://ip.openmptcprouter.com
2018-07-27 14:57:32 +00:00
ipset del ss_rules_dst_bypass $checkip > /dev/null 2>&1