aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-12-16 14:45:29 +0100
committerLuca Deri <deri@ntop.org>2020-12-16 14:45:29 +0100
commit2768da06377ab64fccbb1bf97460e892e0548a60 (patch)
tree63cbd5d13092262fd1709d83c5589517523e74a8 /src/lib
parenta89642ad044928c221e69412bd2666924ac5a7ee (diff)
Improved HTTP dissection
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/protocols/http.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index 1a6b2f613..266b441ac 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -359,10 +359,6 @@ int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct,
setHttpUserAgent(ndpi_struct, flow, token);
}
}
- } else if((ua_ptr_len > 14) && (memcmp(ua, "netflix-ios-app", 15) == 0)) {
- NDPI_LOG_INFO(ndpi_struct, "found netflix\n");
- ndpi_int_http_add_connection(ndpi_struct, flow, NDPI_PROTOCOL_NETFLIX, NDPI_PROTOCOL_CATEGORY_STREAMING);
- return -1;
}
}
@@ -849,7 +845,8 @@ static void ndpi_check_http_tcp(struct ndpi_detection_module_struct *ndpi_struct
NDPI_EXCLUDE_PROTO(ndpi_struct, flow);
http_bitmask_exclude_other(flow);
return;
- }
+ } else
+ ndpi_int_http_add_connection(ndpi_struct, flow, NDPI_PROTOCOL_HTTP, NDPI_PROTOCOL_CATEGORY_WEB);
NDPI_LOG_DBG2(ndpi_struct,
"Filename HTTP found: %d, we look for line info..\n", filename_start);