Skip to content
This repository was archived by the owner on Sep 5, 2022. It is now read-only.

Commit 36362af

Browse files
committed
Fixed node not getting removed on failed health check
1 parent a96e00c commit 36362af

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

LoadBalancerProject-DONT-IMPORT-INTO-UNITY/LRM_LoadBalancer/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ async void PingServers()
190190
if(!await HealthCheckNode(keys[i].EndpointAddress, keys[i].EndpointPort))
191191
{
192192
Logger.ForceLogMessage($"Server {keys[i].Address}:{keys[i].Port} failed a health check, removing from load balancer.", ConsoleColor.Red);
193+
availableRelayServers.Remove(keys[i]);
193194
}
194195
}
195196

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Light Reflective Mirror is a transport for Mirror Networking which relays networ
2727
* Built in server list!
2828
* Relay password to stop other games from stealing your precious relay!
2929
* Relay supports connecting users without them needing to port forward!
30-
* NAT Punchtrough
30+
* NAT Punchtrough (Full Cone, Restricted Cone, and Port Restricted Cone)
3131
* Direct Connecting
3232
* Load Balancing with multi-relay setup
3333

0 commit comments

Comments
 (0)