diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/workers/network.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/workers/network.ts b/apps/workers/network.ts index d1cda62c..0dc46da4 100644 --- a/apps/workers/network.ts +++ b/apps/workers/network.ts @@ -95,6 +95,10 @@ function hostnameMatchesAnyPattern( patterns: string[], ): boolean { function hostnameMatchesPattern(hostname: string, pattern: string): boolean { + if (pattern === ".") { + return true; + } + return ( pattern === hostname || (pattern.startsWith(".") && hostname.endsWith(pattern)) || |
