Commit 60ba5edc authored by Youness Alaoui's avatar Youness Alaoui

in gtalk compat, send the attribute MAPPED_ADDRESS instead of XOR_MAPPED_ADDRESS

parent b8c52ce9
......@@ -187,8 +187,13 @@ stun_conncheck_reply (uint8_t *restrict buf, size_t *restrict plen,
#endif
stun_init_response (buf, len, msg);
val = stun_append_xor_addr (buf, len, STUN_XOR_MAPPED_ADDRESS,
src, srclen);
if (compat == 1) {
val = stun_append_addr (buf, len, STUN_MAPPED_ADDRESS, src, srclen);
} else {
val = stun_append_xor_addr (buf, len, STUN_XOR_MAPPED_ADDRESS,
src, srclen);
}
if (val)
{
DBG (" Mapped address problem: %s\n", strerror (val));
......
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