Skip to content

Commit

Permalink
server: allow http on https port
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 28, 2022
1 parent 69b63fc commit 6482152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.c
Expand Up @@ -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

Expand Down

0 comments on commit 6482152

Please sign in to comment.