From 2e0e465cb1225d1cc2f8db7a39c0d286f5292bb9 Mon Sep 17 00:00:00 2001 From: Serrallonga25 <75206839+Serrallonga25@users.noreply.github.com> Date: Fri, 28 Oct 2022 09:34:12 +0200 Subject: [PATCH] Update ddclient.in Co-authored-by: Sandro --- ddclient.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ddclient.in b/ddclient.in index 798e62f..61565d3 100755 --- a/ddclient.in +++ b/ddclient.in @@ -5559,8 +5559,13 @@ sub dinamico_cdmon_update { $msg .= sprintf " : sent IP address %s", $ip; } - if (exists $params->{'newip'}) {$newip = $params->{'newip'}; $msg .= sprintf " :IP address set to newip:%s", $newip;} - if (exists $params->{'temps'}) {$msg .= sprintf ", the changes will not be operational until after %d minutes", int(int($params->{'temps'})/60000);} + if (exists $params->{'newip'}) { + $newip = $params->{'newip'}; + $msg .= sprintf " :IP address set to newip:%s", $newip; + } + if (exists $params->{'temps'}) { + $msg .= sprintf ", the changes will not be operational until after %d minutes", int(int($params->{'temps'})/60000); + } $config{$h}{'ip'} = $newip; $config{$h}{'mtime'} = $now;