1
0
Fork 0
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:
Andy Green 2019-03-22 05:30:22 +08:00
parent 303c78a5dd
commit 62c5a784e3

View file

@ -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");