Skip to content

Commit 33a5eae

Browse files
committed
loopback from IPAddress
1 parent 3eadfd4 commit 33a5eae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Wissance.Hydra/Wissance.Hydra/Wissance.Hydra.Tcp.Tests/Transport/MultiChannelTcpServerTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Net;
45
using System.Reflection;
56
using Microsoft.Extensions.Logging;
67
using Microsoft.Extensions.Logging.Abstractions;
@@ -25,7 +26,8 @@ public class MultiChannelTcpServerTests : IDisposable
2526
public MultiChannelTcpServerTests(ITestOutputHelper testOutputHelper)
2627
{
2728
_testOutputHelper = testOutputHelper;
28-
_localAddress = OperatingSystem.IsWindows() ? "127.0.0.1" : "0.0.0.0";
29+
_localAddress = IPAddress.Loopback.ToString();
30+
// OperatingSystem.IsWindows() ? "127.0.0.1" : "0.0.0.0";
2931
_testOutputHelper.WriteLine($"Local address is: {_localAddress}");
3032
}
3133

0 commit comments

Comments
 (0)