aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-15 10:46:35 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-15 10:46:35 +0100
commit494fdfd9206d569a1340ce85046b2730d1b9199b (patch)
tree1faaec91809ae0b4391861f6414dad14ee09cb5c
parentde0a3a7d88ff1059b7fbf611c2af11c68f65f805 (diff)
update-tunnelbroker: simplify array access
-rw-r--r--update-tunnelbroker6
1 files changed, 3 insertions, 3 deletions
diff --git a/update-tunnelbroker b/update-tunnelbroker
index 8696f61..55da3aa 100644
--- a/update-tunnelbroker
+++ b/update-tunnelbroker
@@ -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);