feat(admission): add group VPN exceptions
This commit is contained in:
@@ -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