mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #19750 from techhat/xmark
Move --set-xmark after iptables jump
This commit is contained in:
commit
2fd489d5bf
@ -297,6 +297,10 @@ def build_rule(table=None, chain=None, command=None, position='', full=None, fam
|
||||
after_jump.append('--set-mark {0} '.format(kwargs['set-mark']))
|
||||
del kwargs['set-mark']
|
||||
|
||||
if 'set-xmark' in kwargs:
|
||||
after_jump.append('--set-xmark {0} '.format(kwargs['set-xmark']))
|
||||
del kwargs['set-xmark']
|
||||
|
||||
for item in kwargs:
|
||||
if str(kwargs[item]).startswith('!') or str(kwargs[item]).startswith('not'):
|
||||
kwargs[item] = re.sub(bang_not_pat, '', kwargs[item])
|
||||
|
Loading…
Reference in New Issue
Block a user