Allow IPv6 remote log dest

This commit is contained in:
Jamie Cameron
2010-10-31 21:55:23 -07:00
parent 85082526e6
commit e2f2199583

View File

@@ -154,7 +154,7 @@ else {
$log->{'pipe'} = $in{'pipe'};
}
elsif ($in{'mode'} == 2) {
gethostbyname($in{'host'}) ||
&to_ipaddress($in{'host'}) || &to_ip6address($in{'host'}) ||
&error(&text('save_ehost', $in{'host'}));
$log->{'host'} = $in{'host'};
}