Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
b244a4c4
Commit
b244a4c4
authored
Oct 23, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly set the inbound address of the socket to the server address for tcp relay
parent
fa5fb7ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
socket/tcp-turn.c
socket/tcp-turn.c
+4
-0
No files found.
socket/tcp-turn.c
View file @
b244a4c4
...
...
@@ -62,6 +62,7 @@ typedef struct {
gchar
recv_buf
[
65536
];
guint
recv_buf_len
;
guint
expecting_len
;
NiceAddress
server_addr
;
}
TurnTcpPriv
;
struct
to_be_sent
{
...
...
@@ -146,6 +147,8 @@ socket_recv (
memcpy
(
buf
,
priv
->
recv_buf
,
copy_len
);
priv
->
expecting_len
=
0
;
priv
->
recv_buf_len
=
0
;
if
(
from
)
*
from
=
priv
->
server_addr
;
return
copy_len
;
}
...
...
@@ -353,6 +356,7 @@ nice_tcp_turn_socket_new (
sock
->
priv
=
priv
=
g_slice_new0
(
TurnTcpPriv
);
priv
->
compatibility
=
compatibility
;
priv
->
server_addr
=
*
addr
;
sock
->
fileno
=
sockfd
;
sock
->
send
=
socket_send
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment