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