Subject: | invalid connection tracking state: NEW,ESTABLISHED |
Date: | Tue, 5 Jul 2016 00:24:24 +0200 |
To: | bug-IPTables-Rule [...] rt.cpan.org |
From: | XiconRest <rest [...] xicon.de> |
Dear IPTables::Rule maintainer,
the $ipt_rule->state() function knows the available states NEW,
ESTABLISHED, RELATED, INVALID and UNTRACKED, but not in combination like
"NEW,ESTABLISHED" or "NEW,ESTABLISHED,RELATED". It produces an error
e.x. "invalid connection tracking state: NEW,ESTABLISHED,RELATED" (if
$ipt_rule->errstr is used).
Therefore I added a few new lines to give your code the option to
validate a multi-state argument. I hope this code fits your style - I'm
pretty sure this can be made much better ;)
Patch is attached.
Best regards
xiconfjs
Message body is not shown because sender requested not to inline it.