Software / code / prosody
Comparison
core/portmanager.lua @ 13808:d005ee01cafd
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 02 Apr 2025 16:14:24 +0100 |
| parent | 13807:21c58b1d5b47 |
| child | 13813:fd7b0adada05 |
comparison
equal
deleted
inserted
replaced
| 13806:a91440ddf9a2 | 13808:d005ee01cafd |
|---|---|
| 256 local ssl, err, cfg = certmanager.create_context(alternate_host or host, "server", prefix_ssl_config, active_service.tls_cfg); | 256 local ssl, err, cfg = certmanager.create_context(alternate_host or host, "server", prefix_ssl_config, active_service.tls_cfg); |
| 257 if not ssl then | 257 if not ssl then |
| 258 log("error", "Error creating TLS context for SNI host %s: %s", host, err); | 258 log("error", "Error creating TLS context for SNI host %s: %s", host, err); |
| 259 else | 259 else |
| 260 local ok, err = active_service.server:sslctx():set_sni_host( | 260 local ok, err = active_service.server:sslctx():set_sni_host( |
| 261 host, | 261 alternate_host or host, |
| 262 cfg.certificate, | 262 cfg.certificate, |
| 263 cfg.key | 263 cfg.key |
| 264 ); | 264 ); |
| 265 if not ok then | 265 if not ok then |
| 266 log("error", "Error creating TLS context for SNI host %s: %s", host, err); | 266 log("error", "Error creating TLS context for SNI host %s: %s", host, err); |