aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaYuming <mayuming@aliyun.com>2017-06-25 11:15:59 +0800
committerMaYuming <mayuming@aliyun.com>2017-06-25 11:15:59 +0800
commit592b769f67a0257582f49e079e2b49db772eeb7a (patch)
tree6dfaa14ae3c295e6e9324b103038b1ddae65f94c
parent5b8d566a79ebe5b2a74911775ddda6efad4c4757 (diff)
fix lync over ICE detection
-rw-r--r--src/lib/protocols/stun.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/protocols/stun.c b/src/lib/protocols/stun.c
index 8c42f56c9..37feb2871 100644
--- a/src/lib/protocols/stun.c
+++ b/src/lib/protocols/stun.c
@@ -98,7 +98,6 @@ static ndpi_int_stun_t ndpi_int_check_stun(struct ndpi_detection_module_struct *
case 0x8054: /* Candidate Identifier */
if((len == 4)
- && ((payload[offset+4] == 0x31) || (payload[offset+4] == 0x34))
&& (payload[offset+5] == 0x00)
&& (payload[offset+6] == 0x00)
&& (payload[offset+7] == 0x00)) {
@@ -266,7 +265,7 @@ void ndpi_search_stun(struct ndpi_detection_module_struct *ndpi_struct, struct n
NDPI_LOG(NDPI_PROTOCOL_STUN, ndpi_struct, NDPI_LOG_DEBUG, "found UDP stun.\n");
ndpi_int_stun_add_connection(ndpi_struct,
is_whatsapp ? NDPI_PROTOCOL_WHATSAPP_VOICE : NDPI_PROTOCOL_STUN, flow);
- }
+ }
return;
}
}