From 648215214d89fa02149f05129eb13104835c22c1 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 28 Aug 2022 19:03:51 +0800 Subject: [PATCH] server: allow http on https port --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index c135ab9..91e3a90 100644 --- a/src/server.c +++ b/src/server.c @@ -539,7 +539,7 @@ int main(int argc, char **argv) { info.ssl_ca_filepath = ca_path; info.options |= LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT; } - info.options |= LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS; + info.options |= LWS_SERVER_OPTION_ALLOW_NON_SSL_ON_SSL_PORT | LWS_SERVER_OPTION_REDIRECT_HTTP_TO_HTTPS; } #endif -- 2.43.4