mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
MINOR: server: disable CLI 'set server ssl' for dynamic servers
'set server ssl' uses ssl parameters from default-server. As dynamic servers does not reuse any default-server parameters, this command has no sense for them.
This commit is contained in:
parent
1f9333b30e
commit
b89d3d3de7
@ -4081,6 +4081,11 @@ static int cli_parse_set_server(char **args, char *payload, struct appctx *appct
|
||||
}
|
||||
else if (strcmp(args[3], "ssl") == 0) {
|
||||
#ifdef USE_OPENSSL
|
||||
if (sv->flags & SRV_F_DYNAMIC) {
|
||||
cli_err(appctx, "'set server <srv> ssl' not supported on dynamic servers\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (sv->ssl_ctx.ctx == NULL) {
|
||||
cli_err(appctx, "'set server <srv> ssl' cannot be set. "
|
||||
" default-server should define ssl settings\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user