Skip to content

Commit

Permalink
MEDIUM: add new server/bind options
Browse files Browse the repository at this point in the history
Added:
- server <name> <addr> pool-conn-name +1
- server <name> <addr> hash-key +1
- bind <addr> ssl default-crt +1
  • Loading branch information
hdurand0710 committed Jun 24, 2024
1 parent 9ef3696 commit c75eaad
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions params/bind-options.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func getBindOptions() []BindOption {
&BindOptionValue{Name: "quic-socket"},
&BindOptionValue{Name: "nbconn"},
&BindOptionValue{Name: "guid-prefix"},
&BindOptionValue{Name: "default-crt"},
}
}

Expand Down
2 changes: 2 additions & 0 deletions params/server-options.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ func getServerOptions() []ServerOption {
&ServerOptionValue{Name: "log-bufsize"},
&ServerOptionValue{Name: "guid"},
&ServerOptionIDValue{Name: "set-proxy-v2-tlv-fmt"},
&ServerOptionValue{Name: "pool-conn-name"},
&ServerOptionValue{Name: "hash-key"},
}
}

Expand Down
11 changes: 6 additions & 5 deletions tests/bind_generated_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 tests/configs/haproxy_generated.cfg.go

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

4 changes: 4 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.

1 change: 1 addition & 0 deletions tests/integration/frontend_test.go

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

1 change: 1 addition & 0 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ type ACL struct {
//test:ok:bind :443 nbconn 1
//test:ok:bind :443 nbconn +2
//test:ok:bind :443 guid-prefix guid-example
//test:ok:bind :443 default-crt foobar.pem.rsa default-crt foobar.pem.ecdsa
type Bind struct {
Path string // can be address:port or socket path
Params []params.BindOption
Expand Down

0 comments on commit c75eaad

Please sign in to comment.