aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/Utility/appOrigin.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Utility/appOrigin.ts b/src/lib/Utility/appOrigin.ts
index cdc53995..1e2c6708 100644
--- a/src/lib/Utility/appOrigin.ts
+++ b/src/lib/Utility/appOrigin.ts
@@ -11,6 +11,7 @@ const isPrivateHostname = (hostname: string) =>
hostname === "localhost" ||
hostname === "127.0.0.1" ||
hostname.endsWith(".local") ||
+ hostname.endsWith(".localhost") ||
/^10\./.test(hostname) ||
/^192\.168\./.test(hostname) ||
/^172\.(1[6-9]|2\d|3[0-1])\./.test(hostname);