diff options
author | Nardi Ivan <nardi.ivan@gmail.com> | 2024-08-02 12:13:51 +0200 |
---|---|---|
committer | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-09-05 16:36:50 +0200 |
commit | 5b0374c28b60a39f5720cb44ea5f711774c511af (patch) | |
tree | bb7e99bde4839996a1b5a04f309e4d502dbbea3c /src/lib/ndpi_main.c | |
parent | 85ebda434d44f93e656ee5d3e52dc258134495d0 (diff) |
Add detection of SurfShark VPN
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index a234f7afe..db3a83bb9 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -88,6 +88,7 @@ #include "inc_generated/ndpi_protonvpn_out_match.c.inc" #include "inc_generated/ndpi_mullvad_match.c.inc" #include "inc_generated/ndpi_nordvpn_match.c.inc" +#include "inc_generated/ndpi_surfshark_match.c.inc" #include "inc_generated/ndpi_asn_telegram.c.inc" #include "inc_generated/ndpi_asn_apple.c.inc" #include "inc_generated/ndpi_asn_twitter.c.inc" @@ -3642,6 +3643,10 @@ int ndpi_finalize_initialization(struct ndpi_detection_module_struct *ndpi_str) ndpi_init_ptree_ipv4(ndpi_str->protocols->v4, ndpi_protocol_nordvpn_protocol_list); ndpi_init_ptree_ipv6(ndpi_str, ndpi_str->protocols->v6, ndpi_protocol_nordvpn_protocol_list_6); } + if(is_ip_list_enabled(ndpi_str, NDPI_PROTOCOL_SURFSHARK)) { + ndpi_init_ptree_ipv4(ndpi_str->protocols->v4, ndpi_protocol_surfshark_protocol_list); + ndpi_init_ptree_ipv6(ndpi_str, ndpi_str->protocols->v6, ndpi_protocol_surfshark_protocol_list_6); + } if(is_ip_list_enabled(ndpi_str, NDPI_PROTOCOL_TELEGRAM)) { ndpi_init_ptree_ipv4(ndpi_str->protocols->v4, ndpi_protocol_telegram_protocol_list); ndpi_init_ptree_ipv6(ndpi_str, ndpi_str->protocols->v6, ndpi_protocol_telegram_protocol_list_6); |