Skip to content

Commit

Permalink
SingleFile compatibility patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Enovale committed Apr 19, 2021
1 parent e942230 commit 46e3829
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Alibi/Alibi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishSingleFile>true</PublishSingleFile>
<PackageVersion>0.5</PackageVersion>
<AssemblyVersion>0.5</AssemblyVersion>
<PackageVersion>0.5.1</PackageVersion>
<AssemblyVersion>0.5.1</AssemblyVersion>
<LangVersion>8</LangVersion>
</PropertyGroup>

Expand Down
7 changes: 3 additions & 4 deletions Alibi/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,16 @@ public class Server : TcpServer, IServer
public Server(Configuration config) : base(config.BoundIpAddress, config.Port)
{
ServerConfiguration = config;
Version asmVersion = Assembly.GetExecutingAssembly().GetName().Version!;
Version = $"{asmVersion.Major}.{asmVersion.Minor}.{asmVersion.Build}";
Logger = new Logger(this);
Logger.Log(LogSeverity.Special, " Server starting up...");
Logger.Log(LogSeverity.Special, $" Server starting up running version {Version}...");
Database = new DatabaseManager();
if (Database.CheckCredentials("admin", "ChangeThis"))
Logger.Log(LogSeverity.Warning,
" Default admin login is 'admin', password is 'ChangeThis'. " +
"Please change this immediately by logging into this user and running /addadmin, " +
"then removing the dummy user with /removelogin.");
Assembly assembly = Assembly.GetExecutingAssembly();
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
Version = fileVersionInfo.ProductVersion!;

ClientsConnected = new List<IClient>(ServerConfiguration.MaxPlayers);
if (ServerConfiguration.Advertise)
Expand Down

0 comments on commit 46e3829

Please sign in to comment.