Skip to content

Commit

Permalink
fix: strip arg separator
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Oct 29, 2021
1 parent 9ca3299 commit db21201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/vproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func startClient(c *cli.Context) error {
return fmt.Errorf("must bind at least one hostname")
}
args = c.Args().Tail()
if len(args) > 0 && args[0] == "--" {
args = args[1:]
}

} else {
return fmt.Errorf("must bind at least one hostname")
}
Expand Down

0 comments on commit db21201

Please sign in to comment.