Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Olivier Crête
libnice
Commits
4f0d9b01
Commit
4f0d9b01
authored
Jan 03, 2019
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-tcp: Use IPv4 instead of IPv6
This is because Docker doesn't have IPv6 by default.
parent
a38c2adf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
tests/test-tcp.c
tests/test-tcp.c
+4
-5
No files found.
tests/test-tcp.c
View file @
4f0d9b01
...
...
@@ -97,8 +97,8 @@ main (void)
g_assert
(
nice_address_set_from_string
(
&
active_bind_addr
,
"::1"
));
nice_address_init
(
&
passive_bind_addr
);
g_assert
(
nice_address_set_from_string
(
&
passive_bind_addr
,
"
::
1"
));
nice_address_set_port
(
&
passive_bind_addr
,
23456
);
g_assert
(
nice_address_set_from_string
(
&
passive_bind_addr
,
"
127.0.0.
1"
));
nice_address_set_port
(
&
passive_bind_addr
,
0
);
nice_address_init
(
&
tmp
);
...
...
@@ -116,7 +116,7 @@ main (void)
&
active_bind_addr
);
g_assert
(
active_sock
);
client
=
nice_tcp_active_socket_connect
(
active_sock
,
&
passive_
bind_
addr
);
client
=
nice_tcp_active_socket_connect
(
active_sock
,
&
passive_
sock
->
addr
);
g_assert
(
client
);
nice_socket_free
(
active_sock
);
active_sock
=
NULL
;
...
...
@@ -135,9 +135,8 @@ main (void)
g_source_attach
(
cli_input_source
,
g_main_loop_get_context
(
mainloop
));
g_assert
(
nice_address_get_port
(
&
client
->
addr
)
!=
0
);
g_assert
(
nice_address_get_port
(
&
server
->
addr
)
==
23456
);
g_assert
(
nice_address_set_from_string
(
&
tmp
,
"
::
1"
));
g_assert
(
nice_address_set_from_string
(
&
tmp
,
"
127.0.0.
1"
));
nice_address_set_port
(
&
tmp
,
nice_address_get_port
(
&
server
->
addr
));
g_assert
(
nice_address_get_port
(
&
tmp
)
!=
0
);
...
...
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