mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
alpn: handle ALLOW_NON_SSL_ON_SSL_PORT
This commit is contained in:
parent
303c78a5dd
commit
62c5a784e3
1 changed files with 3 additions and 0 deletions
|
@ -74,6 +74,9 @@ lws_tls_server_conn_alpn(struct lws *wsi)
|
|||
char cstr[10];
|
||||
unsigned len;
|
||||
|
||||
if (!wsi->tls.ssl)
|
||||
return 0;
|
||||
|
||||
SSL_get0_alpn_selected(wsi->tls.ssl, &name, &len);
|
||||
if (!len) {
|
||||
lwsl_info("no ALPN upgrade\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue