mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
IPset code cleanup and better rule description
This commit is contained in:
@ -281,6 +281,9 @@ foreach $d ('p', 's', 'd', 'i', 'o', 'f', 'dport',
|
||||
if ($d eq 's' || $d eq 'd' );
|
||||
# compose desc_$n$d to get myized message, provide values
|
||||
# as $1, ..., $n
|
||||
if ($d eq 'match-set') {
|
||||
$v[1] = $text{'desc_'.$d.'_'.$v[1]} || $v[1];
|
||||
}
|
||||
my $txt = &text("desc_$d$n", map { "<b>$_</b>" } @v);
|
||||
push(@c, $txt) if ($txt);
|
||||
}
|
||||
|
@ -142,6 +142,8 @@ desc_tos=type of service field is $1
|
||||
desc_tos!=type of service field is not $1
|
||||
desc_match-set=$2 matches IPset $1
|
||||
desc_match-set!=$2 does not match IPset $1
|
||||
desc_match-set_src=incoming traffic
|
||||
desc_match-set_dst=outgoing traffic
|
||||
desc_physdev-in=input physical interface is $1
|
||||
desc_physdev-in!=input physical interface is not $1
|
||||
desc_physdev-out=output physical interface is $1
|
||||
|
Reference in New Issue
Block a user