Skip to content

Commit

Permalink
fix(transparent-proxy): fix --wait flags for iptables legacy
Browse files Browse the repository at this point in the history
Docs are murky, but it turns out that flags `-w` and `-W` cannot
take any argument, but `--wait` and `--wait-interval` (longer
versions), can take one.

Signed-off-by: Bart Smykla <[email protected]>
  • Loading branch information
bartsmykla committed Nov 14, 2023
1 parent 92e74a6 commit dbc7c6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/transparentproxy/iptables/parameters/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Wait(seconds uint) *Parameter {

return &Parameter{
long: "--wait",
short: "-w",
short: "--wait",
connector: "=",
parameters: []ParameterBuilder{&WaitParameter{seconds: seconds}},
negate: nil, // no negation allowed
Expand Down
2 changes: 1 addition & 1 deletion pkg/transparentproxy/iptables/parameters/wait_interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func WaitInterval(microseconds uint) *Parameter {

return &Parameter{
long: "--wait-interval",
short: "-W",
short: "--wait-interval",
connector: "=",
parameters: []ParameterBuilder{
&WaitIntervalParameter{microseconds: microseconds},
Expand Down

0 comments on commit dbc7c6d

Please sign in to comment.