Added support for discord
This commit is contained in:
@@ -87,7 +87,7 @@ typedef enum {
|
|||||||
NDPI_PROTOCOL_ZATTOO = 55,
|
NDPI_PROTOCOL_ZATTOO = 55,
|
||||||
NDPI_PROTOCOL_SHOUTCAST = 56,
|
NDPI_PROTOCOL_SHOUTCAST = 56,
|
||||||
NDPI_PROTOCOL_SOPCAST = 57,
|
NDPI_PROTOCOL_SOPCAST = 57,
|
||||||
NDPI_PROTOCOL_FREE_58 = 58, /* Free */
|
NDPI_PROTOCOL_DISCORD = 58,
|
||||||
NDPI_PROTOCOL_TVUPLAYER = 59,
|
NDPI_PROTOCOL_TVUPLAYER = 59,
|
||||||
NDPI_PROTOCOL_HTTP_DOWNLOAD = 60,
|
NDPI_PROTOCOL_HTTP_DOWNLOAD = 60,
|
||||||
NDPI_PROTOCOL_QQLIVE = 61,
|
NDPI_PROTOCOL_QQLIVE = 61,
|
||||||
|
|||||||
@@ -9138,6 +9138,13 @@ static ndpi_protocol_match host_match[] =
|
|||||||
|
|
||||||
{ ".net.anydesk.com", "AnyDesk", NDPI_PROTOCOL_ANYDESK, NDPI_PROTOCOL_CATEGORY_REMOTE_ACCESS, NDPI_PROTOCOL_ACCEPTABLE },
|
{ ".net.anydesk.com", "AnyDesk", NDPI_PROTOCOL_ANYDESK, NDPI_PROTOCOL_CATEGORY_REMOTE_ACCESS, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
|
||||||
|
{ "discordapp.com", "Discord", NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_CATEGORY_COLLABORATIVE, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
{ "discordapp.net", "Discord", NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_CATEGORY_COLLABORATIVE, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
{ "discord.com", "Discord", NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_CATEGORY_COLLABORATIVE, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
{ "discord.gg", "Discord", NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_CATEGORY_COLLABORATIVE, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
{ "discord.media", "Discord", NDPI_PROTOCOL_DISCORD, NDPI_PROTOCOL_CATEGORY_COLLABORATIVE, NDPI_PROTOCOL_ACCEPTABLE },
|
||||||
|
|
||||||
|
|
||||||
{ NULL, NULL, NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, NDPI_PROTOCOL_SAFE }
|
{ NULL, NULL, NDPI_PROTOCOL_UNKNOWN, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, NDPI_PROTOCOL_SAFE }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -914,8 +914,8 @@ static void ndpi_init_protocol_defaults(struct ndpi_detection_module_struct *ndp
|
|||||||
no_master, no_master, "Sopcast", NDPI_PROTOCOL_CATEGORY_VIDEO,
|
no_master, no_master, "Sopcast", NDPI_PROTOCOL_CATEGORY_VIDEO,
|
||||||
ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
|
ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
|
||||||
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
|
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
|
||||||
ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_FREE_58, 0 /* can_have_a_subprotocol */,
|
ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_DISCORD, 0 /* can_have_a_subprotocol */,
|
||||||
no_master, no_master, "Free58", NDPI_PROTOCOL_CATEGORY_VIDEO,
|
no_master, no_master, "Discord", NDPI_PROTOCOL_CATEGORY_COLLABORATIVE,
|
||||||
ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
|
ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */,
|
||||||
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
|
ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */);
|
||||||
ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_TVUPLAYER, 0 /* can_have_a_subprotocol */,
|
ndpi_set_proto_defaults(ndpi_str, NDPI_PROTOCOL_FUN, NDPI_PROTOCOL_TVUPLAYER, 0 /* can_have_a_subprotocol */,
|
||||||
|
|||||||
Reference in New Issue
Block a user