summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.(none)>2008-09-16 14:31:47 -0400
committerYouness Alaoui <kakaroto@kakaroto.(none)>2008-09-16 14:31:47 -0400
commitc4099bbd9427c05395441b58b0d0df4663b940b9 (patch)
tree1098b43169ecad021cfb0c6d6516cefaecefb2ec
parentec0a778a499dad7774798a868a047dfab9adba46 (diff)
downloadlibnice-c4099bbd9427c05395441b58b0d0df4663b940b9.tar.gz
Receiving a message from the turn server should set the udp_socket to the relayed one so answers can be wrapped too
-rw-r--r--agent/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 8c123e2..d809de3 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -1337,6 +1337,7 @@ _nice_agent_recv (
NiceCandidate *cand = i->data;
if (cand->type == NICE_CANDIDATE_TYPE_RELAYED) {
len = nice_udp_turn_socket_parse_recv (cand->sockptr, &from, len, buf, &from, buf, len);
+ udp_socket = cand->sockptr;
}
}
}