File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -108,11 +108,11 @@ class VerificationController extends Controller {
108
108
return this . response ( 400 , { error : "Missing IP address." } ) ;
109
109
}
110
110
111
- // if (await this.verificationService.isProxy(ip)) {
112
- // return this.response(400, {
113
- // error: "You seem to be using a VPN or proxy. Please disable it, reload this page and try again."
114
- // });
115
- // }
111
+ if ( await this . verificationService . isProxy ( ip ) ) {
112
+ return this . response ( 400 , {
113
+ error : "You seem to be using a VPN or proxy. Please disable it, reload this page and try again."
114
+ } ) ;
115
+ }
116
116
117
117
const result = await this . verificationService . connectDiscord (
118
118
guildId ,
Original file line number Diff line number Diff line change @@ -569,12 +569,12 @@ class VerificationService extends Service {
569
569
let incomplete = false ;
570
570
571
571
verify: {
572
- // if (proxyCheck) {
573
- // error =
574
- // "You seem to be using a VPN or proxy. Please disable it, reload this page and try again.";
575
- // reason = "VPN or Proxy detected.";
576
- // break verify;
577
- // }
572
+ if ( proxyCheck ) {
573
+ error =
574
+ "You seem to be using a VPN or proxy. Please disable it, reload this page and try again." ;
575
+ reason = "VPN or Proxy detected." ;
576
+ break verify;
577
+ }
578
578
579
579
const entry = await this . application . database . query . verificationEntries . findFirst ( {
580
580
where ( fields , operators ) {
You can’t perform that action at this time.
0 commit comments