Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed TestIPv6.v6_calls_v4 in case the system-default IPV6_V6ONLY is 1. #2420

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/test_ipv6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class TestIPv6

m_caller_sock = srt_create_socket();
ASSERT_NE(m_caller_sock, SRT_ERROR);
// IPv6 calling IPv4 would otherwise fail if the system-default net.ipv6.bindv6only=1.
ASSERT_NE(srt_setsockflag(m_caller_sock, SRTO_IPV6ONLY, &no, sizeof no), SRT_ERROR);

m_listener_sock = srt_create_socket();
ASSERT_NE(m_listener_sock, SRT_ERROR);
Expand Down