mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
netwatch-syslog: simplify array access
This commit is contained in:
parent
1ca1b48bcd
commit
de0a3a7d88
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# manage remote logging facilities
|
||||
|
||||
:local Remote [ /system logging action get [ :pick [ find where target=remote ] 0 ] remote ];
|
||||
:local Remote [ /system logging action get ([ find where target=remote ]->0) remote ];
|
||||
|
||||
if ([ / tool netwatch get [ find where host=$Remote ] status ] = "up") do={
|
||||
/ system logging set disabled=no [ find where action=remote disabled=yes ];
|
||||
|
|
Loading…
Reference in a new issue