8000 fix(dev-setup): use USE_DOCKER_LOCALHOST as condition for lax filtering · algolia/renderscript@d826226 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit d826226

Browse files
author
Jonathan Montane
committed
fix(dev-setup): use USE_DOCKER_LOCALHOST as condition for lax filtering
1 parent 8714aaf commit d826226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as puppeteer from "puppeteer-core";
44
import * as uuid from "uuid/v4";
55
import { validateURL, PRIVATE_IP_PREFIXES } from '@algolia/dns-filter';
66

7-
const RESTRICTED_IPS = process.env.NODE_ENV === 'development'
7+
const RESTRICTED_IPS = process.env.USE_DOCKER_LOCALHOST === 'true'
88
? PRIVATE_IP_PREFIXES.filter((prefix: string) => !['127.', '0.', '::1'].includes(prefix)) // allow everything in dev
99
: PRIVATE_IP_PREFIXES; // no private IPs otherwise
1010

0 commit comments

Comments
 (0)
0