Commit 14f7accd authored by Olivier Crête's avatar Olivier Crête Committed by Youness Alaoui

Google puts the STUN cookie, but doesn't follow RFC 5389

Google puts the stun cookie, but it doesn'T follow RFC 5389 at all,
so ignore the STUN cookie in Google mode.
parent c266ec7e
...@@ -293,7 +293,8 @@ stun_usage_ice_conncheck_create_reply (StunAgent *agent, StunMessage *req, ...@@ -293,7 +293,8 @@ stun_usage_ice_conncheck_create_reply (StunAgent *agent, StunMessage *req,
val = stun_message_append_xor_addr_full (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS, val = stun_message_append_xor_addr_full (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS,
src, srclen, htonl (magic_cookie)); src, srclen, htonl (magic_cookie));
} else if (stun_message_has_cookie (msg)) { } else if (stun_message_has_cookie (msg) &&
compatibility != STUN_USAGE_ICE_COMPATIBILITY_GOOGLE) {
val = stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS, val = stun_message_append_xor_addr (msg, STUN_ATTRIBUTE_XOR_MAPPED_ADDRESS,
src, srclen); src, srclen);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment