Forward Proxy Support? #1409
-
I'm testing blocky in an environment which requires all http/https requests to use a forward proxy. I have the following env vars defined on OS:
When I start blocky as a standalone binary, requests against blocklists fail:
Yet when I test this in an environment where 80/443 are not blocked, blocky starts just fine:
I'm not well versed in Go but is there a library which could be included in the blocky build to support forward proxy? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, This shouldn't be hard to support. Go has support for the env proxy variables in the standard library. It's even enabled by default. I'll look at basing our transport on the default one instead of building it from scratch: #1411 |
Beta Was this translation helpful? Give feedback.
Hi,
This shouldn't be hard to support. Go has support for the env proxy variables in the standard library. It's even enabled by default.
We use a custom "HTTP Transport" so we can override the name resolution, and provide the right SNI for DoH/DoT. That has the side effect of disabling the env proxy support.
I'll look at basing our transport on the default one instead of building it from scratch: #1411