From a3f27f8751c0fe5e0bb53a989095e445ddaf2b29 Mon Sep 17 00:00:00 2001 From: Changli Gao Date: Sun, 19 Mar 2017 22:48:57 +0800 Subject: [PATCH] STUN: The most significant 2 bits is 0xc0 in hex --- daemon/stun.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/stun.h b/daemon/stun.h index 7cddb6e28..640d1392c 100644 --- a/daemon/stun.h +++ b/daemon/stun.h @@ -37,7 +37,7 @@ INLINE int is_stun(const str *s) { if (s->len < 20) return 0; - if ((b[0] & 0xb0) != 0x00) + if ((b[0] & 0xc0) != 0x00) return 0; if ((b[3] & 0x3) != 0x0) return 0;