From 35731871f87d0973e066608f310ea47b8e304635 Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Tue, 6 Apr 2021 16:25:33 -0500 Subject: [PATCH] Added support for "localhost" LRM Nodes --- ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs index 2df49be..000c370 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs @@ -197,6 +197,9 @@ namespace LightReflectiveMirror try { // replace hard coded value for config value later + if (conf.LoadBalancerAddress.ToLower() == "localhost") + conf.LoadBalancerAddress = "127.0.0.1"; + var uri = new Uri($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/auth"); string endpointPort = conf.EndpointPort.ToString(); string gamePort = 7777.ToString();