Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncHttpClientBackend ignores onlyProxyHosts #1971

Open
nigredo-tori opened this issue Oct 12, 2023 · 0 comments
Open

AsyncHttpClientBackend ignores onlyProxyHosts #1971

nigredo-tori opened this issue Oct 12, 2023 · 0 comments

Comments

@nigredo-tori
Copy link

With this setup (full Scastie):

      sttp <- AsyncHttpClientZioBackend(
        SttpBackendOptions.Default.copy(proxy =
          Some(SttpBackendOptions.Proxy("localhost", 1234, ProxyType.Http, onlyProxyHosts = List("foo.bar")))
        )
      )
      response <- sttp.send(quickRequest.get(uri"http://example.com"))

we get an exception:

sttp.client3.SttpClientException$ConnectException: Exception when sending request: GET http://example.com
...
	Suppressed: java.net.ConnectException: Connection refused: localhost/[0:0:0:0:0:0:0:1]:1234
...

even though the proxy should not be enabled for example.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant