summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 5d28b78..8f98341 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -2572,7 +2572,8 @@ sub cgi ($) {
-charset=> ( $cfg->{Presentation}{charset} || 'iso-8859-15')
);
if ($q->param(-name=>'secret') && $q->param(-name=>'target') ) {
- update_dynaddr $cfg,$q;
+ my $ret = update_dynaddr $cfg,$q;
+ do_cgilog($ret) if defined $ret and $ret ne "";
} else {
display_webpage $cfg,$q;
}