Fixed a crash on startup
This commit is contained in:
parent
2c66e9022f
commit
31fd33513f
@ -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});
|
||||
|
Loading…
Reference in New Issue
Block a user