aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-12-28 16:11:39 +0100
committerLuca Deri <deri@ntop.org>2020-12-28 16:11:39 +0100
commit84132c6735935ce494a665557dcbabfd2703b036 (patch)
tree746763690ddb91144447b32514f03159b4bd1a68 /src/lib/protocols/http.c
parent7f944cc43ba58b5d049e36b7cbe1556e79790172 (diff)
Added known protocol on unknown port for ntop
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c
index cc81644aa..f130ea6b9 100644
--- a/src/lib/protocols/http.c
+++ b/src/lib/protocols/http.c
@@ -446,8 +446,10 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_
}
if(packet->server_line.ptr != NULL && (packet->server_line.len > 7)) {
- if(strncmp((const char *)packet->server_line.ptr, "ntopng ", 7) == 0)
+ if(strncmp((const char *)packet->server_line.ptr, "ntopng ", 7) == 0) {
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_NTOP, NDPI_PROTOCOL_HTTP);
+ NDPI_CLR_BIT(flow->risk, NDPI_KNOWN_PROTOCOL_ON_NON_STANDARD_PORT);
+ }
}
if(packet->user_agent_line.ptr != NULL && packet->user_agent_line.len != 0) {