Commit 1389eec7 authored by Sergey Lyubka's avatar Sergey Lyubka

Added comment for mg_terminate_ssl() call

parent 6ef795e0
...@@ -127,7 +127,7 @@ static int proxy_event_handler(struct mg_connection *conn, enum mg_event ev) { ...@@ -127,7 +127,7 @@ static int proxy_event_handler(struct mg_connection *conn, enum mg_event ev) {
// Enable man-in-the-middle SSL mode for oracle.com // Enable man-in-the-middle SSL mode for oracle.com
if (!strcmp(conn->request_method, "CONNECT") && if (!strcmp(conn->request_method, "CONNECT") &&
!strcmp(host, "oracle.com")) { !strcmp(host, "oracle.com")) {
mg_terminate_ssl(conn, "ssl_cert.pem"); mg_terminate_ssl(conn, "ssl_cert.pem"); // MUST return MG_MORE after
return MG_MORE; return MG_MORE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment