This commit is contained in:
Jamie Cameron
2020-01-02 21:27:35 -08:00
parent e1e84b498b
commit 54365d56d1

View File

@@ -194,7 +194,9 @@ else {
$log->{'pipe'} = $in{'pipe'};
}
elsif ($in{'mode'} == 2) {
&to_ipaddress($in{'host'}) || &to_ip6address($in{'host'}) ||
my $host = $in{'host'};
$host =~ s/:\d+$//;
&to_ipaddress($host) || &to_ip6address($host) ||
&error(&text('save_ehost', $in{'host'}));
$log->{'host'} = $in{'host'};
}