Skip to content

Commit

Permalink
fix issue with vpn detection using new interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Oct 13, 2022
1 parent 4cf62b7 commit 89e6dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/ScriptPlugins/VPNDetection.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const plugin = {
this.logger.WriteInfo(`Loaded ${vpnExceptionIds.length} ids into whitelist`);

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)) {
return;
}
Expand Down

0 comments on commit 89e6dbf

Please sign in to comment.