Skip to content

Commit

Permalink
MINOR: quic-socket option to bind
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Gramer <[email protected]>
  • Loading branch information
vgramer committed Nov 28, 2023
1 parent 2a801e6 commit 1a68b44
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions params/bind-options.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ var bindOptionValuesValidation = map[string]BindOptionValueValidation{
"quic-cc-algo": {
AllowedValues: []string{"cubic", "newreno"},
},
"quic-socket": {
AllowedValues: []string{"connection", "listener"},
},
}

// Parse ...
Expand Down Expand Up @@ -211,6 +214,7 @@ func getBindOptions() []BindOption {
&BindOptionValue{Name: "user"},
&BindOptionValue{Name: "verify"},
&BindOptionValue{Name: "quic-cc-algo"},
&BindOptionValue{Name: "quic-socket"},
}
}

Expand Down
3 changes: 3 additions & 0 deletions tests/bind_generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions tests/configs/haproxy_generated.cfg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions tests/integration/frontend_data_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions tests/integration/frontend_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ type ACL struct {
//test:ok:bind :443 quic-cc-algo newreno
//test:fail:bind :443 quic-cc-algo something
//test:ok:bind :443 quic-force-retry
//test:ok:bind :443 quic-socket connection
//test:ok:bind :443 quic-socket listener
//test:fail:bind :443 quic-socket something
type Bind struct {
Path string // can be address:port or socket path
Params []params.BindOption
Expand Down

0 comments on commit 1a68b44

Please sign in to comment.