From d6445279b2281cbf424f2154ace197d600f69f55 Mon Sep 17 00:00:00 2001 From: belettee <87133271+belettee@users.noreply.github.com> Date: Thu, 11 Apr 2024 02:05:22 +0200 Subject: [PATCH] [udp] fix implicit ip direct connection --- Source/Networking/GameClientUDP.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Networking/GameClientUDP.cs b/Source/Networking/GameClientUDP.cs index 1e5c6469..d634cea5 100644 --- a/Source/Networking/GameClientUDP.cs +++ b/Source/Networking/GameClientUDP.cs @@ -128,10 +128,10 @@ public async void Start() if(!_netClient.IsRunning) _netClient.Start(); - - var expli = ServerEndPoints["explicit"]; - if (expli != null) +; + if (ServerEndPoints.ContainsKey("explicit")) { + var expli = ServerEndPoints["explicit"]; msg = $"Forcing connection to {expli}"; Logger.LogDebug(msg); EFT.UI.ConsoleScreen.Log(msg);