Skip to content

Commit

Permalink
[tests] Fixed TestIPv6.v6_calls_v4
Browse files Browse the repository at this point in the history
in case the system-default IPV6_V6ONLY is 1.
  • Loading branch information
maxsharabayko committed Aug 1, 2022
1 parent 618db39 commit 086dfe9
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 086dfe9

Please sign in to comment.