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

Return the correct originating IP on TURN

If doing a recv on UDP-TURN, the 'from' address was kept set to
the turn server which causes connchecks to fail with "mismatched address"
error. This fixes it
parent bf8ba839
...@@ -374,6 +374,8 @@ socket_recv_messages (NiceSocket *sock, ...@@ -374,6 +374,8 @@ socket_recv_messages (NiceSocket *sock,
/* A TURN control message which needs ignoring. Re-use this /* A TURN control message which needs ignoring. Re-use this
* NiceInputMessage in the next loop iteration. */ * NiceInputMessage in the next loop iteration. */
n_valid_messages = 0; n_valid_messages = 0;
} else {
*message->from = from;
} }
/* Split up the monolithic buffer again into the caller-provided buffers. */ /* Split up the monolithic buffer again into the caller-provided buffers. */
......
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