From: vados-dev <192440777+vados-dev@users.noreply.github.com> Date: Thu, 30 Apr 2026 18:44:36 +0000 (+0300) Subject: Auto-commit: AM-GlobalFunc.rsc manual update on 4/30/2026, 2026-04-30T18:44:36.225Z X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=f5b1bfb4e31cc44997fb1ea3133bea7e224302fb;p=Mikrotiks%2Fros.vados.ru.git Auto-commit: AM-GlobalFunc.rsc manual update on 4/30/2026, 2026-04-30T18:44:36.225Z --- diff --git a/html/AM-GlobalFunc.rsc b/html/AM-GlobalFunc.rsc index 5f97649ee..c57839aa7 100644 --- a/html/AM-GlobalFunc.rsc +++ b/html/AM-GlobalFunc.rsc @@ -495,7 +495,7 @@ :retry command={:set PubIpAddr ([ /tool/fetch http-method="get" check-certificate=yes-without-crl $Url output=user as-value ]->"data")} \ delay=200ms max=5 on-error={:log error ($JobName . " Failed to detect public IP using fallback service: " . $Url . ".")} }; - :local IpLen ([ :len $PublicIpAddress ] -1); + :local IpLen ([ :len $PubIpAddr ] -1); :if ($PubIpAddr = false) do={:set PubIpAddr "not-detected"} else={:set PubIpAddr [:pick $PubIpAddr 0 $IpLen]} # :log warning ($0 . " Public IP address detected: $PubIpAddr"); :return $PubIpAddr;