Skip to content

Commit c75eaad

Browse files
committed
MEDIUM: add new server/bind options
Added: - server <name> <addr> pool-conn-name +1 - server <name> <addr> hash-key +1 - bind <addr> ssl default-crt +1
1 parent 9ef3696 commit c75eaad

File tree

7 files changed

+18
-5
lines changed

7 files changed

+18
-5
lines changed

params/bind-options.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ func getBindOptions() []BindOption {
218218
&BindOptionValue{Name: "quic-socket"},
219219
&BindOptionValue{Name: "nbconn"},
220220
&BindOptionValue{Name: "guid-prefix"},
221+
&BindOptionValue{Name: "default-crt"},
221222
}
222223
}
223224

params/server-options.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@ func getServerOptions() []ServerOption {
267267
&ServerOptionValue{Name: "log-bufsize"},
268268
&ServerOptionValue{Name: "guid"},
269269
&ServerOptionIDValue{Name: "set-proxy-v2-tlv-fmt"},
270+
&ServerOptionValue{Name: "pool-conn-name"},
271+
&ServerOptionValue{Name: "hash-key"},
270272
}
271273
}
272274

tests/bind_generated_test.go

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/configs/haproxy_generated.cfg.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/frontend_data_test.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/integration/frontend_test.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ type ACL struct {
259259
//test:ok:bind :443 nbconn 1
260260
//test:ok:bind :443 nbconn +2
261261
//test:ok:bind :443 guid-prefix guid-example
262+
//test:ok:bind :443 default-crt foobar.pem.rsa default-crt foobar.pem.ecdsa
262263
type Bind struct {
263264
Path string // can be address:port or socket path
264265
Params []params.BindOption

0 commit comments

Comments
 (0)