mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02: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…
Add table
Add a link
Reference in a new issue