Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs')
-rw-r--r--src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs b/src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs
index 68e845e56c..c45c488f0f 100644
--- a/src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs
+++ b/src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs
@@ -107,11 +107,11 @@ namespace System.Net.Security.Tests
int timeOut = expectedToFail ? TestConfiguration.FailingTestTimeoutMiliseconds
: TestConfiguration.PassingTestTimeoutMilliseconds;
- IPEndPoint endPoint = new IPEndPoint(IPAddress.IPv6Loopback, 0);
+ IPEndPoint endPoint = new IPEndPoint(Socket.OSSupportsIPv6 ? IPAddress.IPv6Loopback : IPAddress.Loopback, 0);
var server = new TcpListener(endPoint);
server.Start();
- using (var clientConnection = new TcpClient(AddressFamily.InterNetworkV6))
+ using (var clientConnection = new TcpClient(Socket.OSSupportsIPv6 ? AddressFamily.InterNetworkV6 : AddressFamily.InterNetwork))
{
IPEndPoint serverEndPoint = (IPEndPoint)server.LocalEndpoint;