Skip to content

Commit

Permalink
fix: different environment variable issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Jun 8, 2022
1 parent 0010fb3 commit 9d6a2b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Oxide.Ext.GamingApi/DefaultPluginInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private DefaultPluginInformation()

public static string GetServerId()
{
var envName = "BLACKHAWK_SERVER_ID";
var envName = "GAMINGAPI_SERVER_ID";
var value = Environment.GetEnvironmentVariable(envName);
if (value == null)
{
Expand Down
17 changes: 1 addition & 16 deletions Oxide.Ext.GamingApi/GamingApiNats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,7 @@ private string GetNatsHost()
if (value == null)
{
Console.WriteLine($"NATS: {envName} environment variable not sat using default value.");
return "nats://localhost:42222";
}
else
{
return value;
}
}
private string GetServerId()
{

var envName = "GAMINGAPI_SERVER_ID";
var value = Environment.GetEnvironmentVariable(envName);
if (value == null)
{
Console.WriteLine($"NATS: {envName} environment variable not sat using default value.");
return "" + 0;
return "nats://localhost:4222";
}
else
{
Expand Down

0 comments on commit 9d6a2b4

Please sign in to comment.