netty-https代理支持

yh2wf1be  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(266)

我在用 reactor-netty:1.0.1 通过 org.springframework.boot:spring-boot-starter-webflux:jar:2.4.0 并且需要将http转发代理与tls一起使用。我没有看到reactor netty支持这一点的文档,但是它只支持没有tls的http代理。我指的是:https://projectreactor.io/docs/netty/release/reference/index.html#_proxy_support,我在想我是否遗漏了什么?

TcpClient tcpClient = TcpClient
    .create()
    .proxy(proxy -> 
        proxy.type(ProxyProvider.Proxy.HTTP)
            .address(new InetSocketAddress("proxy.domain.com", 443))
            .username(proxyUserId)
            .password(password -> proxyPassword)
   );

收到异常

io.netty.handler.proxy.ProxyConnectException: http, basic, proxy.domain.com/proxy.ip.address:443, 
java.io.IOException: An existing connection was forcibly closed by the remote host

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题