Skip to content

Commit eb79619

Browse files
authored
Merge pull request #59 from cnblogs/hotfix-issue-58
Fix DnsEndPoint not working on linux
2 parents 3c45880 + d92f060 commit eb79619

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Enyim.Caching/Enyim.Caching.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>EnyimMemcachedCore is a Memcached client library for .NET Core. Usage: Add services.AddEnyimMemcached(...) and app.UseEnyimMemcached() in Startup. Add IMemcachedClient into constructor.</Description>
5-
<VersionPrefix>2.1.7</VersionPrefix>
5+
<VersionPrefix>2.1.8</VersionPrefix>
66
<Authors>cnblogs.com</Authors>
77
<TargetFramework>netstandard2.0</TargetFramework>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

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())

SampleWebApp/SampleWebApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.0" />
8+
<PackageReference Include="Microsoft.AspNetCore.App" />
99
</ItemGroup>
1010

1111
<ItemGroup>

0 commit comments

Comments
 (0)