mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Show network source nicely
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user