mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-03-03 20:49:36 +00:00
FIXUP
This commit is contained in:
parent
87a6e60765
commit
f55770b6a6
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@
|
|||
:global FetchHuge;
|
||||
:global GetRandom20CharAlNum;
|
||||
:global HumanReadableNum;
|
||||
:global IfThenElse;
|
||||
:global LogPrint;
|
||||
:global LogPrintOnce;
|
||||
:global LogPrintVerbose;
|
||||
|
|
@ -137,7 +138,7 @@
|
|||
:if ([ :typeof $Slash ] = "num") do={
|
||||
:set Net [ :toip [ :pick $Address 0 $Slash ] ]
|
||||
:set Cidr [ :pick $Address ($Slash + 1) [ :len $Address ] ];
|
||||
:set Address (([ :toip $Net ] & ($Maskv4->$Cidr)) . "/" . $Cidr);
|
||||
:set Address (([ :toip $Net ] & ($Maskv4->$Cidr)) . [ $IfThenElse ($Cidr < 32) ("/" . $Cidr) ]);
|
||||
}
|
||||
:set Branch [ $GetBranch $Address ];
|
||||
:set ($IPv4Addresses->$Branch->$Address) $TimeOut;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue