mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Syslog host can end with :port https://sourceforge.net/p/webadmin/bugs/5341/
This commit is contained in:
@@ -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'};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user