mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
drop deprecated mode= for fetch
This commit is contained in:
parent
2e10a80f95
commit
b93d4d40bc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 "";
|
||||
|
|
|
@ -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 "";
|
||||
|
|
|
@ -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 "";
|
||||
|
|
|
@ -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={
|
||||
|
|
|
@ -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=("{" . \
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue