Closed xyzj91 closed 2 years ago
在HttpProxyServerConfig.java中加上
private Iterable<String> ciphers; public Iterable<String> getCiphers() { return ciphers; } public void setCiphers(Iterable<String> ciphers) { this.ciphers = ciphers; }
在HttpProxyServer.java中修改init函数
SslContextBuilder contextBuilder = SslContextBuilder.forClient().trustManager(InsecureTrustManagerFactory.INSTANCE); // 设置ciphers用于改变 client hello 握手协议指纹 if(serverConfig.getCiphers()!=null){ contextBuilder.ciphers(serverConfig.getCiphers()); } serverConfig.setClientSslCtx( contextBuilder.build());
这样调整之后在启动代理前设置好ciphers就可以突破阿里云盾的请求限制了,否则一旦开启阿里云盾,请求会响应504 很抱歉,由于您访问的URL有可能对网站造成安全威胁,您的访问被阻断。
你可以帮忙提个pr吗
刚刚提交了一个pr,你看看没问题就合并下
@xyzj91 感谢,已经合并了
在HttpProxyServerConfig.java中加上
在HttpProxyServer.java中修改init函数
这样调整之后在启动代理前设置好ciphers就可以突破阿里云盾的请求限制了,否则一旦开启阿里云盾,请求会响应504 很抱歉,由于您访问的URL有可能对网站造成安全威胁,您的访问被阻断。