mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-08 14:50:54 +00:00
Fixed bug that prevented HTTP to be redirected to SSL (if enabled)
This commit is contained in:
parent
a8d0804143
commit
be64fc6865
1 changed files with 1 additions and 1 deletions
|
|
@ -584,7 +584,7 @@ static int handle_lua_request(struct mg_connection *conn) {
|
|||
&& isCaptiveURL(request_info->uri)
|
||||
&& (!strstr(referer, HOTSPOT_DETECT_LUA_URL))
|
||||
&& (!strstr(referer, CAPTIVE_PORTAL_URL))
|
||||
&& ((mg_get_header(conn, "Host") == NULL) || (mg_get_header(conn, "Host")[0] == '\0'))
|
||||
// && ((mg_get_header(conn, "Host") == NULL) || (mg_get_header(conn, "Host")[0] == '\0'))
|
||||
) {
|
||||
redirect_to_ssl(conn, request_info);
|
||||
return(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue