Skip to content

Commit

Permalink
Update ssl_redir.c
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 committed Dec 21, 2023
1 parent 1c17db9 commit a6d6f82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ssl_redir.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ ssl_redirect_loop (char *gw_ip, t_https_server *https_server) {
debug (LOG_ERR, "couldn't create evhttp. Exiting.\n");
exit(EXIT_FAILURE);
}

evhttp_set_allowed_methods(http,
EVHTTP_REQ_GET |
EVHTTP_REQ_POST |
EVHTTP_REQ_OPTIONS);

SSL_CTX *ctx = SSL_CTX_new (SSLv23_server_method ());
SSL_CTX_set_options (ctx,
SSL_OP_SINGLE_DH_USE |
Expand Down

0 comments on commit a6d6f82

Please sign in to comment.