File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3838 $LogPrintExit2 error $0 ("Downloading required certificate failed.") true;
3939 }
4040 $LogPrintExit2 info $0 ("Local address changed, sending UPDATE to tunnelbroker! New address: " . $PublicAddress) false;
41- /tool/fetch check-certificate=yes-without-crl \
42- ("https://ipv4.tunnelbroker.net/nic/update\?hostname=" . $Comment->"id") \
43- user=($Comment->"user") password=($Comment->"pass") output=none as-value;
41+ :do {
42+ /tool/fetch check-certificate=yes-without-crl \
43+ ("https://ipv4.tunnelbroker.net/nic/update\?hostname=" . $Comment->"id") \
44+ user=($Comment->"user") password=($Comment->"pass") output=none as-value;
45+ } on-error={
46+ $LogPrintExit2 error $0 ("Failed sending the local address to tunnelbroker! Wrong credentials?") true;
47+ }
4448 /interface/6to4/set $Interface local-address=$PublicAddress;
4549 } else={
4650 $LogPrintExit2 debug $0 ("All tunnelbroker configuration is up to date for interface " . $InterfaceVal->"name" . ".") false;
You can’t perform that action at this time.
0 commit comments