mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Check IPs for ASN every day
This commit is contained in:
parent
df9d3fcc15
commit
6b161f428d
2 changed files with 7 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
START=99
|
START=99
|
||||||
STOP=10
|
STOP=10
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
EXTRA_COMMANDS="reload_rules"
|
EXTRA_COMMANDS="reload_rules bypass_asn"
|
||||||
|
|
||||||
. /usr/lib/unbound/iptools.sh
|
. /usr/lib/unbound/iptools.sh
|
||||||
|
|
||||||
|
@ -340,6 +340,11 @@ _bypass_asn() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bypass_asn() {
|
||||||
|
config_load omr-bypass
|
||||||
|
config_foreach _bypass_asn asns
|
||||||
|
}
|
||||||
|
|
||||||
_bypass_omr_server() {
|
_bypass_omr_server() {
|
||||||
local ip
|
local ip
|
||||||
config_get ip $1 ip
|
config_get ip $1 ip
|
||||||
|
|
|
@ -82,6 +82,6 @@ if [ "$(uci -q get omr-bypass.lesnumeriques)" = "" ]; then
|
||||||
commit omr-bypass
|
commit omr-bypass
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
echo '0 2 * * * /etc/init.d/omr-bypass bypass_asn' > /etc/crontabs/bypass
|
||||||
rm -f /tmp/luci-indexcache
|
rm -f /tmp/luci-indexcache
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue