This commit is contained in:
Alexander Tebiev 2023-11-25 14:45:56 +01:00
parent a0a5a4a15b
commit cf7e533c52

View file

@ -294,11 +294,13 @@ if ([:len [/system identity get name]] = 0 or [/system identity get name] = "Mik
}
}
:if ($detectPublicIpAddress = true) do={
# Always truncate the string for safety measures
:set publicIpAddress ([:pick $publicIpAddress 0 15])
:set mailBodyDeviceInfo ($mailBodyDeviceInfo . "\r\nPublic IP address: " . $publicIpAddress);
}
}
}
## STEP ONE: Creating backups, checking for new RouterOs version and sending email with backups,