feat(admission): add group VPN exceptions
This commit is contained in:
1 parent
24808b0f8c
commit
71856bb869
34 files changed
+1820
-138
No files matched your search
@@ -51,7 +51,9 @@ function numberValue(value: unknown) {
|
||||
}
|
||||
|
||||
function proxyClassification(proxy: unknown, type: unknown): IpClassification {
|
||||
if (String(proxy).toLowerCase() !== "yes") return "clear";
|
||||
const normalizedProxy = String(proxy).toLowerCase();
|
||||
if (normalizedProxy === "no") return "clear";
|
||||
if (normalizedProxy !== "yes") return "unknown";
|
||||
const normalizedType = String(type ?? "").toLowerCase();
|
||||
if (normalizedType.includes("tor")) return "tor";
|
||||
if (normalizedType.includes("vpn")) return "vpn";
|
||||
|
||||
Reference in new issue
Block a user