diff --git a/docs/user-management.md b/docs/user-management.md index 930e980..0cbcd60 100644 --- a/docs/user-management.md +++ b/docs/user-management.md @@ -70,4 +70,4 @@ You can provide a comma-separated list containing individual IPv4 or IPv6 addres To whitelist an entire IP range, use CIDR notation. For example, `192.168.0.1/24` would whitelist all addresses from `192.168.0.0` to `192.168.0.255`. -To disable the whitelist, set `ADMIN_WHITELIST=0.0.0.0/0`, which will allow access from any IP address. This is the default behavior. +To disable the whitelist, set `ADMIN_WHITELIST=0.0.0.0/0,::0`, which will allow access from any IPv4 or IPv6 address. This is the default behavior. diff --git a/src/config.ts b/src/config.ts index bb24107..57ee52b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -481,7 +481,9 @@ export const config: Config = { allowOpenAIToolUsage: getEnvWithDefault("ALLOW_OPENAI_TOOL_USAGE", false), allowImagePrompts: getEnvWithDefault("ALLOW_IMAGE_PROMPTS", false), proxyEndpointRoute: getEnvWithDefault("PROXY_ENDPOINT_ROUTE", "/proxy"), - adminWhitelist: parseCsv(getEnvWithDefault("ADMIN_WHITELIST", "0.0.0.0/0")), + adminWhitelist: parseCsv( + getEnvWithDefault("ADMIN_WHITELIST", "0.0.0.0/0,::/0") + ), ipBlacklist: parseCsv(getEnvWithDefault("IP_BLACKLIST", "")), } as const;