aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-03-20 17:56:02 +0100
committerGitHub <noreply@github.com>2023-03-20 17:56:02 +0100
commit3a75a46212c044efc423d1833be89c4f144438ec (patch)
tree5a44b838bf03e3b0dc4d34ff0e105d1992bf35c8 /src/lib/protocols
parent12867962b04bcc8c8bf3a6adf6ab594091eee8ca (diff)
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.
Diffstat (limited to 'src/lib/protocols')
-rw-r--r--src/lib/protocols/stun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index 22b4c7097..97ba37b4d 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -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);
}
}
}