server: allow http on https port

This commit is contained in:
Shuanglei Tao
2022-08-28 19:03:51 +08:00
parent 69b63fcfd7
commit 648215214d

View File

@@ -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