Commit 7faf69b5 authored by Simon Morlat's avatar Simon Morlat

put mapped address in stun responses (not only xor mapped)

parent d37b7097
......@@ -1701,6 +1701,10 @@ stunServerProcessMsg( char* buf,
resp->xorMappedAddress.ipv4.port = mapped.port^(cookie>>16);
resp->xorMappedAddress.ipv4.addr = mapped.addr^cookie;
}
resp->hasMappedAddress = TRUE;
resp->mappedAddress.ipv4.port=mapped.port;
resp->mappedAddress.ipv4.addr=mapped.addr;
resp->hasSourceAddress = TRUE;
resp->sourceAddress.ipv4.port = (*changePort) ? altAddr->port : myAddr->port;
......
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