Closed yywing closed 2 years ago
https://github.com/coreos/go-iptables/blob/abea47c2ca57b2fa33a189f63a63b0269eec487a/iptables/iptables.go#L599 This func check wait.
https://github.com/coreos/go-iptables/commit/abea47c2ca57b2fa33a189f63a63b0269eec487a This commit add timeout.
But, version >= 1.6.0, support --wait second, 1.4.21 just support --wait no second.
--wait second
--wait
So,
exit status 2: Bad argument `5' Try `iptables -h' or 'iptables --help' for more information.
# /usr/sbin/iptables -t filter -N ttttt --wait 5 Bad argument `5' Try `iptables -h' or 'iptables --help' for more information. # iptables -h iptables v1.4.21
https://github.com/coreos/go-iptables/pull/83
merged
https://github.com/coreos/go-iptables/blob/abea47c2ca57b2fa33a189f63a63b0269eec487a/iptables/iptables.go#L599 This func check wait.
https://github.com/coreos/go-iptables/commit/abea47c2ca57b2fa33a189f63a63b0269eec487a This commit add timeout.
But, version >= 1.6.0, support
--wait second
, 1.4.21 just support--wait
no second.So,