iptables-save saves hashlimit rules with error
PATCH 1/1 iptables-save saves hashlimit rules with error
In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval argument is saved incorrectly. Patch below corrects.
Phil
Patch-from: Xeb <[email protected]>
Signed-off-by Phil Oester <[email protected]>
extensions/libxt_hashlimit.c +1 -1
@@ -613,7 +613,7 @@if (r->cfg.max)printf ("--hashlimit-htable-max %u " , r->cfg.max);if (r->cfg.gc_interval !=XT_HASHLIMIT_GCINTERVAL ) -printf ("--hashlimit-htable-gcinterval %u" , r->cfg.gc_interval); +printf ("--hashlimit-htable-gcinterval %u " , r->cfg.gc_interval);if (r->cfg.expire !=XT_HASHLIMIT_EXPIRE )printf ("--hashlimit-htable-expire %u " , r->cfg.expire); }
Patrick McHardy
AppliedQuoted 2 lines · Phil Oester
In bugzilla 550, Xeb notes that the --hashlimit-htable-gcinterval argument is saved incorrectly. Patch below corrects.
Applied, thanks.