diff options
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index ac3227d74..e8cc046b4 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3001,6 +3001,7 @@ struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs ndpi_str->opportunistic_tls_imap_enabled = 1; ndpi_str->opportunistic_tls_pop_enabled = 1; ndpi_str->opportunistic_tls_ftp_enabled = 1; + ndpi_str->opportunistic_tls_stun_enabled = 1; ndpi_str->monitoring_stun_pkts_to_process = 4; ndpi_str->monitoring_stun_flags = 0; @@ -9843,6 +9844,9 @@ int ndpi_set_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct, case NDPI_PROTOCOL_FTP_CONTROL: ndpi_struct->opportunistic_tls_ftp_enabled = value; return 0; + case NDPI_PROTOCOL_STUN: + ndpi_struct->opportunistic_tls_stun_enabled = value; + return 0; default: return -1; } @@ -9865,6 +9869,8 @@ int ndpi_get_opportunistic_tls(struct ndpi_detection_module_struct *ndpi_struct, return ndpi_struct->opportunistic_tls_pop_enabled; case NDPI_PROTOCOL_FTP_CONTROL: return ndpi_struct->opportunistic_tls_ftp_enabled; + case NDPI_PROTOCOL_STUN: + return ndpi_struct->opportunistic_tls_stun_enabled; default: return -1; } |