Commit a31f3f3e authored by Dafydd Harries's avatar Dafydd Harries

use mapped address of valid remote candidate as peer address, not the candidate's own address

darcs-hash:20070215191348-c9803-b51ea23c7e4d7826449e7413ccfa9c23c618d78f.gz
parent 4b61c2f2
...@@ -36,7 +36,7 @@ struct _Component ...@@ -36,7 +36,7 @@ struct _Component
/* the local candidate that last received a valid connectivity check */ /* the local candidate that last received a valid connectivity check */
NiceCandidate *active_candidate; NiceCandidate *active_candidate;
/* the remote address that the last connectivity check came from */ /* the remote address that the last connectivity check came from */
NiceAddress *peer_addr; NiceAddress peer_addr;
guint id; guint id;
NiceComponentState state; NiceComponentState state;
}; };
...@@ -673,7 +673,7 @@ RESPOND: ...@@ -673,7 +673,7 @@ RESPOND:
/* update candidate/peer affinity */ /* update candidate/peer affinity */
component->active_candidate = local; component->active_candidate = local;
component->peer_addr = &remote->addr; component->peer_addr = from;
/* send STUN response */ /* send STUN response */
...@@ -1092,7 +1092,7 @@ nice_agent_send ( ...@@ -1092,7 +1092,7 @@ nice_agent_send (
#endif #endif
sock = &component->active_candidate->sock; sock = &component->active_candidate->sock;
addr = component->peer_addr; addr = &component->peer_addr;
nice_udp_socket_send (sock, addr, len, buf); nice_udp_socket_send (sock, addr, len, buf);
} }
} }
......
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