Don't recognize flag that's not valid https://github.com/webmin/webmin/issues/948

This commit is contained in:
Jamie Cameron
2018-11-19 15:01:31 -08:00
parent b3e55c7dc4
commit 2e6020d28e

View File

@@ -240,11 +240,12 @@ return @rv;
sub describe_rule
{
local (@c, $d);
my $sd = &supports_conntrack() ? "ctstate" : "state";
foreach $d ('p', 's', 'd', 'i', 'o', 'f', 'dport',
'sport', 'tcp-flags', 'tcp-option',
'icmp-type', 'icmpv6-type', 'mac-source', 'limit', 'limit-burst',
'ports', 'uid-owner', 'gid-owner',
'pid-owner', 'sid-owner', 'state', 'ctstate', 'tos',
'pid-owner', 'sid-owner', $sd, 'tos',
'dports', 'sports', 'physdev-in', 'physdev-out', 'args') {
if ($_[0]->{$d}) {