mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-10 10:04:30 +02:00
global-functions: $DefaultRouteIsReachable: exclude blackhole
This commit is contained in:
parent
d320fa93f2
commit
fae28357c7
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@
|
||||||
|
|
||||||
# default route is reachable
|
# default route is reachable
|
||||||
:set DefaultRouteIsReachable do={
|
:set DefaultRouteIsReachable do={
|
||||||
:if ([ :len [ / ip route find where dst-address=0.0.0.0/0 !unreachable active !routing-mark ] ] > 0) do={
|
:if ([ :len [ / ip route find where dst-address=0.0.0.0/0 active !blackhole !routing-mark !unreachable ] ] > 0) do={
|
||||||
:return true;
|
:return true;
|
||||||
}
|
}
|
||||||
:return false;
|
:return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue