mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 06:37:58 -05:00
fix issue with vpn detection using new interaction
This commit is contained in:
parent
4cf62b73f1
commit
89e6dbf49a
@ -83,7 +83,7 @@ const plugin = {
|
|||||||
this.logger.WriteInfo(`Loaded ${vpnExceptionIds.length} ids into whitelist`);
|
this.logger.WriteInfo(`Loaded ${vpnExceptionIds.length} ids into whitelist`);
|
||||||
|
|
||||||
this.interactionRegistration = _serviceResolver.ResolveService('IInteractionRegistration');
|
this.interactionRegistration = _serviceResolver.ResolveService('IInteractionRegistration');
|
||||||
this.interactionRegistration.RegisterScriptInteraction('WhitelistVPN', this.name, (originId, targetId, game, token) => {
|
this.interactionRegistration.RegisterScriptInteraction('WhitelistVPN', this.name, (targetId, game, token) => {
|
||||||
if (vpnExceptionIds.includes(targetId)) {
|
if (vpnExceptionIds.includes(targetId)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user