mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Correct iptables rule parameter.
Is "of" stands for "out-interface"?
This commit is contained in:
parent
18561e94ad
commit
0d358c5c3a
@ -154,7 +154,7 @@ def build_rule(table=None, chain=None, command=None, position='', full=None, fam
|
||||
kwargs['of'] = re.sub(bang_not_pat, '', kwargs['of'])
|
||||
rule += '! '
|
||||
|
||||
rule += '-i {0} '.format(kwargs['of'])
|
||||
rule += '-o {0} '.format(kwargs['of'])
|
||||
del kwargs['of']
|
||||
|
||||
if 'proto' in kwargs:
|
||||
|
Loading…
Reference in New Issue
Block a user