mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 20:44:31 +02:00
update-tunnelbroker: simplify array access
This commit is contained in:
parent
de0a3a7d88
commit
494fdfd920
1 changed files with 3 additions and 3 deletions
|
@ -22,9 +22,9 @@
|
|||
|
||||
:if ($PublicAddress != $LastAddress) do={
|
||||
:local Comment [ :toarray [ / interface 6to4 get $Interface comment ] ];
|
||||
:local User [ :pick [ :pick $Comment 1 ] 5 99 ];
|
||||
:local Pass [ :pick [ :pick $Comment 2 ] 5 99 ];
|
||||
:local Id [ :pick [ :pick $Comment 3 ] 5 99 ];
|
||||
:local User [ :pick ($Comment->1) 5 99 ];
|
||||
:local Pass [ :pick ($Comment->2) 5 99 ];
|
||||
:local Id [ :pick ($Comment->3) 5 99 ];
|
||||
|
||||
$CertificateAvailable "Starfield Secure Certificate Authority - G2" "starfield";
|
||||
:log info ("Local address changed, sending UPDATE to tunnelbroker! New address: " . $PublicAddress);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue