mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix editing of forwarding rule
https://github.com/webmin/webmin/issues/2573
This commit is contained in:
@@ -30,10 +30,13 @@ if (!$in{'new'}) {
|
||||
$dstmode = 1;
|
||||
($dstportlow, $dstporthigh) = ($1, $2);
|
||||
}
|
||||
else {
|
||||
elsif ($dstports) {
|
||||
$dstmode = 0;
|
||||
$dstport = $dstports;
|
||||
}
|
||||
else {
|
||||
$dstmode = 2;
|
||||
}
|
||||
}
|
||||
else {
|
||||
&ui_print_header(undef, $text{'forward_create'}, "");
|
||||
|
||||
@@ -280,7 +280,7 @@ return $? ? $out : undef;
|
||||
sub parse_firewalld_forward
|
||||
{
|
||||
my ($str) = @_;
|
||||
my %w = map { split(/=/, $_) } split(/:/, $str);
|
||||
my %w = map { split(/=/, $_, 2) } split(/:/, $str);
|
||||
return ($w{'port'}, $w{'proto'}, $w{'toport'}, $w{'toaddr'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user