Skip to content

Commit 9ad3129

Browse files
fix: re-enable proxy checking [1/2]
Signed-off-by: Ar Rakin <[email protected]>
1 parent 092594b commit 9ad3129

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/typescript/api/controllers/VerificationController.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ class VerificationController extends Controller {
108108
return this.response(400, { error: "Missing IP address." });
109109
}
110110

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+
}
116116

117117
const result = await this.verificationService.connectDiscord(
118118
guildId,

0 commit comments

Comments
 (0)