From 31fd33513f9603282afd4d0d70337c1d845abf73 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 17 Apr 2021 00:06:28 +0200 Subject: [PATCH] Fixed a crash on startup --- server/src/client/SpeakingClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/client/SpeakingClient.cpp b/server/src/client/SpeakingClient.cpp index f8169a7..7900ef5 100644 --- a/server/src/client/SpeakingClient.cpp +++ b/server/src/client/SpeakingClient.cpp @@ -345,7 +345,7 @@ command_result SpeakingClient::handleCommandClientInit(Command& cmd) { ClientPermissionCalculator permission_calculator{this, nullptr}; /* Check if the target client ip address has been denied */ - if(geoloc::provider && !permission_calculator.permission_granted(permission::b_client_ignore_vpn, 1)) { + if(geoloc::provider_vpn && !permission_calculator.permission_granted(permission::b_client_ignore_vpn, 1)) { auto provider = this->isAddressV4() ? geoloc::provider_vpn->resolveInfoV4(this->getPeerIp(), true) : geoloc::provider_vpn->resolveInfoV6(this->getPeerIp(), true); if(provider) { auto message = strvar::transform(ts::config::messages::kick_vpn, strvar::StringValue{"provider.name", provider->name}, strvar::StringValue{"provider.website", provider->side});