mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
netwatch-syslog: simplify array access
This commit is contained in:
@ -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 ];
|
||||
|
Reference in New Issue
Block a user