Show network source nicely

This commit is contained in:
Jamie Cameron
2016-04-09 17:08:05 -07:00
parent e0731515d7
commit a4cb099b3f
2 changed files with 6 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ sources_typeu=UDP server
sources_typef=Kernel log file
sources_typep=Named pipe
sources_typen=Sun stream
sources_typenw=Syslog server
sources_return=log sources
sources_none2=None

View File

@@ -519,6 +519,11 @@ local $sun_streams = &find("sun-streams", $source->{'members'});
if ($sun_streams) {
push(@rv, $text{'sources_typen'}." <tt>$sun_streams->{'value'}</tt>");
}
local $network = &find("network", $source->{'members'});
if ($network) {
local $ip = &find("ip", $network->{'members'});
push(@rv, $text{'sources_typenw'}." <tt>$ip->{'value'}</tt>");
}
return join(", ", @rv);
}