drop deprecated mode= for fetch

This commit is contained in:
Christian Hesse 2019-04-09 17:53:48 +02:00
parent 2e10a80f95
commit b93d4d40bc
7 changed files with 8 additions and 8 deletions

View file

@ -34,7 +34,7 @@
:error "No CertRenewUrl given.";
}
/ tool fetch mode=https check-certificate=yes-without-crl url=($CertRenewUrl . $CommonName . ".pem");
/ tool fetch check-certificate=yes-without-crl ($CertRenewUrl . $CommonName . ".pem");
:foreach PassPhrase in=$CertRenewPass do={
/ certificate import file-name=($CommonName . ".pem") passphrase=$PassPhrase;
}

View file

@ -74,7 +74,7 @@
:local Attach "qrcode-daily.png";
:do {
/ tool fetch mode=https check-certificate=yes-without-crl \
/ tool fetch check-certificate=yes-without-crl \
$Url dst-path=$Attach;
} on-error={
:set Attach "";

View file

@ -74,7 +74,7 @@
:local Attach "qrcode-daily.png";
:do {
/ tool fetch mode=https check-certificate=yes-without-crl \
/ tool fetch check-certificate=yes-without-crl \
$Url dst-path=$Attach;
} on-error={
:set Attach "";

View file

@ -80,7 +80,7 @@
:local Attach "qrcode-daily.png";
:do {
/ tool fetch mode=https check-certificate=yes-without-crl \
/ tool fetch check-certificate=yes-without-crl \
$Url dst-path=$Attach;
} on-error={
:set Attach "";

View file

@ -130,7 +130,7 @@
:do {
:local Vendor;
$CertificateAvailable "Let's Encrypt Authority X3" "letsencrypt";
:set Vendor ([ / tool fetch mode=https check-certificate=yes-without-crl \
:set Vendor ([ / tool fetch check-certificate=yes-without-crl \
("https://api.macvendors.com/" . [ :pick $Mac 0 8 ]) output=user as-value ]->"data");
:return $Vendor;
} on-error={
@ -176,7 +176,7 @@
$CertificateAvailable "Let's Encrypt Authority X3" "letsencrypt";
:do {
/ tool fetch mode=https check-certificate=yes-without-crl \
/ tool fetch check-certificate=yes-without-crl \
("https://upgrade.mikrotik.com/routeros/" . $PkgVer . "/" . $PkgFile) \
dst-path=$PkgDest;
} on-error={

View file

@ -13,7 +13,7 @@
if ($Gps->"valid" = true) do={
:set ($Gps->"latitude") [ :pick ($Gps->"latitude") 0 [ :find ($Gps->"latitude") "\00" ] ];
:set ($Gps->"longitude") [ :pick ($Gps->"longitude") 0 [ :find ($Gps->"longitude") "\00" ] ];
:tool fetch mode=https check-certificate=yes-without-crl \
:tool fetch check-certificate=yes-without-crl \
$GpsTrackUrl keep-result=no \
http-method=post http-header-field="Content-Type: application/json" \
http-data=("{" . \

View file

@ -29,7 +29,7 @@
$CertificateAvailable "Starfield Secure Certificate Authority - G2" "starfield";
:log info ("Local address changed, sending UPDATE to tunnelbroker! New address: " . $PublicAddress);
/ tool fetch mode=https check-certificate=yes-without-crl \
/ tool fetch check-certificate=yes-without-crl \
("https://ipv4.tunnelbroker.net/nic/update\?hostname=" . $Id) \
user=$User password=$Pass keep-result=no;
/ interface 6to4 set $Interface local-address=$PublicAddress;