diff options
author | Luca Deri <deri@ntop.org> | 2021-03-09 11:42:23 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-03-09 11:42:23 +0100 |
commit | db716d0ab02e47ff2b0e4edc12de9fad4222d348 (patch) | |
tree | 006c383fd9b93cae6aeaa04dd34cc296d263c66b /src | |
parent | 477e4db650a4a565bb2288621adc01bb2a2dfed4 (diff) |
Ookla fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/http.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 8efaf1af4..cc1d39917 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -352,8 +352,8 @@ static void ndpi_http_parse_subprotocol(struct ndpi_detection_module_struct *ndp if(ndpi_match_hostname_protocol(ndpi_struct, flow, NDPI_PROTOCOL_HTTP, (char *)flow->host_server_name, strlen((const char *)flow->host_server_name)) == 0) { - if((strstr(flow->http.url, ":8080/downloading?n=0.") == 0) - || (strstr(flow->http.url, ":8080/upload?n=0.") == 0)) { + if((strstr(flow->http.url, ":8080/downloading?n=0.") != NULL) + || (strstr(flow->http.url, ":8080/upload?n=0.") != NULL)) { /* This looks like Ookla speedtest */ ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_OOKLA, NDPI_PROTOCOL_HTTP); } |