Skip to content

Commit c5238e3

Browse files
committed
Fix DnsEndPoint not working on linux(#58)
1 parent 3c45880 commit c5238e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Enyim.Caching/Memcached/PooledSocket.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ private void ConnectWithTimeout(Socket socket, DnsEndPoint endpoint, int timeout
7171
}
7272
else
7373
{
74-
args.RemoteEndPoint = endpoint;
74+
//DnsEndPoint is not working on linux
75+
args.RemoteEndPoint = new IPEndPoint(address, endpoint.Port);
7576
}
7677

7778
using (var mres = new ManualResetEventSlim())

0 commit comments

Comments
 (0)