Correct iptables rule parameter.

Is "of" stands for "out-interface"?
This commit is contained in:
Andrew Burdo 2014-05-16 00:55:37 +03:00
parent 18561e94ad
commit 0d358c5c3a

View File

@ -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: