mirror of
https://github.com/webmin/webmin.git
synced 2026-06-22 20:20:28 +01:00
Remove flag for unsupported conntrack mode https://sourceforge.net/p/webadmin/bugs/5478/
This commit is contained in:
@@ -321,11 +321,13 @@ else {
|
||||
|
||||
# Save connection states and TOS
|
||||
my $sd = &supports_conntrack() ? "ctstate" : "state";
|
||||
my $nonsd = $sd eq "ctstate" ? "state" : "ctstate";
|
||||
if (&parse_mode($sd, $rule, $sd)) {
|
||||
@states = split(/\0/, $in{$sd});
|
||||
@states || &error($text{'save_estates'});
|
||||
$rule->{$sd}->[1] = join(",", @states);
|
||||
push(@mods, $sd eq "state" ? "state" : "conntrack");
|
||||
delete($rule->{$nonsd});
|
||||
}
|
||||
if (&parse_mode("tos", $rule, "tos")) {
|
||||
$rule->{'tos'}->[1] = $in{'tos'};
|
||||
|
||||
Reference in New Issue
Block a user