Added extraction of hostname in SMTP

Fixed mail incalid subprotocol calculation
This commit is contained in:
Luca Deri
2021-08-11 11:52:24 +02:00
parent 846b546dbc
commit 5c33fbf19b
6 changed files with 33 additions and 3 deletions
+2 -2
View File
@@ -30,8 +30,8 @@
/* #define IMAP_DEBUG 1*/
static void ndpi_int_mail_imap_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow)
{
static void ndpi_int_mail_imap_add_connection(struct ndpi_detection_module_struct *ndpi_struct, struct ndpi_flow_struct *flow) {
flow->guessed_protocol_id = NDPI_PROTOCOL_UNKNOWN; /* Avoid IMAPS to be used s sub-protocol */
ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_MAIL_IMAP, NDPI_PROTOCOL_UNKNOWN);
}