Include geoip.dat file again

This should allow the GeoIP.dat file to be found, and used the same way it used to on TShock 4.
It appears I had missed including this in the upgrade, and simply allowing it to copy to the output will allow the system to start working again.
Confirmed by enabling in config and joining via mobile (external network) and my country has appeared, N/A otherwise (local network)
Note: only ipv4 was tested.
This commit is contained in:
Luke 2022-10-22 21:45:31 +10:00
parent 272ad941bd
commit 0c2d194d02
2 changed files with 9 additions and 1 deletions

View file

@ -19,6 +19,13 @@
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="..\prebuilts\GeoIP.dat">
<Link>GeoIP.dat</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="MySql.Data" Version="8.0.31" />
@ -84,7 +91,7 @@
</Target>
<Target Name="MoveBin" AfterTargets="Publish">
<ItemGroup>
<MoveBinaries Include="$(PublishDir)*" Exclude="$(PublishDir)\TShock.Server*" />
<MoveBinaries Include="$(PublishDir)*" Exclude="$(PublishDir)\TShock.Server*;$(PublishDir)\GeoIP.dat" />
</ItemGroup>
<Move SourceFiles="@(MoveBinaries)" DestinationFolder="$(PublishDir)bin" ContinueOnError="true" />
</Target>