mirror of
https://github.com/webmin/webmin.git
synced 2026-09-27 07:50:39 +01:00
Ports can be a range
This commit is contained in:
@@ -94,7 +94,7 @@ my @protos;
|
||||
if (-r $service_file) {
|
||||
my $lref = &read_file_lines($service_file, 1);
|
||||
foreach my $l (@{$lref}) {
|
||||
$l =~ /<port\s+protocol=["'](?<proto>\S+)["']\s+port=["'](?<port>\d+)["']\/>/;
|
||||
$l =~ /<port\s+protocol=["'](?<proto>\S+)["']\s+port=["'](?<port>[\d-]+)["']\/>/;
|
||||
my $port = "$+{port}";
|
||||
my $proto = "$+{proto}";
|
||||
push(@ports, $port) if ($port);
|
||||
|
||||
Reference in New Issue
Block a user