From c7a380f379365e6f3f40c4093f3f55f1819726b4 Mon Sep 17 00:00:00 2001 From: Cucumberbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Thu, 19 Jun 2025 20:37:34 +0100 Subject: [PATCH] fix: only accept hostname from args only if it's not whitespace --- RDNET/RdNetClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RDNET/RdNetClient.cs b/RDNET/RdNetClient.cs index 8dd973b..cc7ecac 100644 --- a/RDNET/RdNetClient.cs +++ b/RDNET/RdNetClient.cs @@ -95,7 +95,7 @@ public RdNetClient(String? appId = null, HttpClient? httpClient = null, Int32 re _store.AppId= appId ?? "X245A4XAIBGVM"; _store.RetryCount = retryCount; - if (apiHostname != null) + if (!String.IsNullOrWhiteSpace(apiHostname)) { _store.ApiHostname = apiHostname; }