Add a new protocol id for generic Adult Content traffic (#1906)

The list has been taken from https://www.similarweb.com/top-websites/adult/
Fix a GoTo false positive.
This commit is contained in:
Ivan Nardi
2023-03-20 17:56:02 +01:00
committed by GitHub
parent 12867962b0
commit 3a75a46212
8 changed files with 96 additions and 15 deletions
+3
View File
@@ -357,6 +357,9 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
} else if(strstr(flow->host_server_name, "facebook") != NULL) {
*app_proto = NDPI_PROTOCOL_FACEBOOK_VOIP;
return(NDPI_IS_STUN);
} else if(strstr(flow->host_server_name, "stripcdn.com") != NULL) {
*app_proto = NDPI_PROTOCOL_ADULT_CONTENT;
return(NDPI_IS_STUN);
}
}
}