Co-authored-by: Mona Hmiza <you@example.com>
This commit is contained in:
RavMorgan
2023-10-03 12:41:32 +03:00
committed by Aviu00
parent b23441192a
commit 244b418375

View File

@@ -37,7 +37,7 @@ public sealed class SalusManager
try
{
var response = await _httpClient.GetAsync($"{_salusApiLink}{ip}");
if (response.StatusCode != HttpStatusCode.OK) return;
if (!response.IsSuccessStatusCode) return;
usingVpn = bool.Parse(await response.Content.ReadAsStringAsync());
}