goproxy 部分代理请求失败

a7qyws3x  于 2022-10-27  发布在  Go
关注(0)|答案(1)|浏览(322)

我在服务器上通过 ./proxy sps -p :80,:443 --log proxy.log --daemon 的方式运行代理服务,然后在客户机上运行 curl -vvvvvv https://www.oschina.net --resolve 'www.oschina.net:443:113.55.17.2' 是没有问题的,但是运行 curl https://pubs.acs.org --resolve 'pubs.acs.org:443:113.55.17.2' 就会有如下错误提示

C:\Users\Liu.D.H>curl -vvv https://pubs.acs.org --resolve 'pubs.acs.org:443:113.55.17.2'

* Address in ''pubs.acs.org:443:113.55.17.2'' found illegal!
* Rebuilt URL to: https://pubs.acs.org/
* Trying 113.55.17.2...
* TCP_NODELAY set
* Connected to pubs.acs.org (113.55.17.2) port 443 (#0)
* schannel: SSL/TLS connection with pubs.acs.org port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 177 bytes...
* schannel: sent initial handshake data: sent 177 bytes
* schannel: SSL/TLS connection with pubs.acs.org port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with pubs.acs.org port 443 (step 2/3)
* schannel: failed to receive handshake, SSL/TLS connection failed
* Closing connection 0
* schannel: shutting down SSL/TLS connection with pubs.acs.org port 443
* schannel: clear security context handle

curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed

C:\Users\Liu.D.H>

这是服务端相关日志信息

2019/11/18 03:30:57 SNI:https://pubs.acs.org:443
2019/11/18 03:30:57 conn 113.55.127.140:12957 - 113.55.17.2:45619 connected [pubs.acs.org:443]
2019/11/18 03:31:13 conn 113.55.127.140:12957 - 113.55.17.2:45619 released [pubs.acs.org:443]

Expected Behavior

可以正常的获得请求内容

Current Behavior

代理请求失败

Possible Solution

Context (Environment)

  1. proxy version is : v8.6
  2. full command is :./proxy sps -p :80,:443 --log proxy.log --daemon
  3. system is :Ubuntu 18.04.2 LTS

Detailed Description

Possible Implementation

相关问题