mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $DefaultRouteIsReachable: exclude blackhole
This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
|
||||
# default route is reachable
|
||||
: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 false;
|
||||
|
Reference in New Issue
Block a user