Skip to content

Commit

Permalink
主动引用IP库
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Oct 22, 2023
1 parent 2a2b0bc commit 364580a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Stardust.Server/Stardust.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NewLife.IP" Version="2.1.2023.1020-beta0109" />
<PackageReference Include="NewLife.Redis" Version="5.5.2023.1001" />
</ItemGroup>

Expand Down
4 changes: 4 additions & 0 deletions Stardust.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
using NewLife;
using NewLife.Caching;
using NewLife.Caching.Services;
using NewLife.IP;
using NewLife.Log;
using NewLife.Net;
using NewLife.Serialization;
using Stardust.Data;
using Stardust.Data.Nodes;
Expand Down Expand Up @@ -55,6 +57,8 @@ public void ConfigureServices(IServiceCollection services)
services.AddSingleton<ITraceItemStatService, TraceItemStatService>();
//services.AddSingleton<IAlarmService, AlarmService>();

IpResolver.Register();

// 业务服务
services.AddSingleton<NodeService>();
services.AddSingleton<AppQueueService>();
Expand Down

0 comments on commit 364580a

Please sign in to comment.