fixed to show the real hostname in the emailreports

This commit is contained in:
Jordi Sanfeliu 2013-11-06 18:44:00 +01:00
parent 8232acd943
commit 666aa475b1
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ sub emailreports_send {
logger("$myself: sending $report reports.");
my $hostname = $ENV{HOSTNAME} ? $ENV{HOSTNAME} : `hostname`;
my $uri = URI->new($emailreports->{url_prefix});
my $hostname = $uri->host;
my $html = <<"EOF";
<html>
<body bgcolor='FFFFFF' vlink='#888888' link='#888888'>