Made LRM node properly use transport port from main config
This commit is contained in:
parent
d663b49367
commit
55ea8b4c77
2 changed files with 2 additions and 5 deletions
|
|
@ -225,7 +225,7 @@ namespace LightReflectiveMirror
|
||||||
|
|
||||||
var uri = new Uri($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/auth");
|
var uri = new Uri($"http://{conf.LoadBalancerAddress}:{conf.LoadBalancerPort}/api/auth");
|
||||||
string endpointPort = conf.EndpointPort.ToString();
|
string endpointPort = conf.EndpointPort.ToString();
|
||||||
string gamePort = "7777";
|
string gamePort = conf.TransportPort.ToString();
|
||||||
HttpWebRequest authReq = (HttpWebRequest)WebRequest.Create(uri);
|
HttpWebRequest authReq = (HttpWebRequest)WebRequest.Create(uri);
|
||||||
|
|
||||||
authReq.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
authReq.Headers.Add("Authorization", conf.LoadBalancerAuthKey);
|
||||||
|
|
|
||||||
|
|
@ -132,10 +132,7 @@ namespace LightReflectiveMirror
|
||||||
serverData = serverData,
|
serverData = serverData,
|
||||||
clients = new List<int>(),
|
clients = new List<int>(),
|
||||||
|
|
||||||
// hard coded for now REMEMBER TO UN-HARDCODE
|
relayInfo = new RelayAddress { address = Program.publicIP, port = Program.conf.TransportPort, endpointPort = Program.conf.EndpointPort },
|
||||||
// this is needed for load balancer to know which server this room
|
|
||||||
// belongs to
|
|
||||||
relayInfo = new RelayAddress { address = Program.publicIP, port = 7777, endpointPort = Program.conf.EndpointPort },
|
|
||||||
|
|
||||||
serverId = GetRandomServerID(),
|
serverId = GetRandomServerID(),
|
||||||
hostIP = hostIP,
|
hostIP = hostIP,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue