隧道代理增加日志

This commit is contained in:
Lenovo 2024-08-05 18:21:43 +08:00
parent 54e94879b2
commit 12c6fd6d89
1 changed files with 2 additions and 0 deletions

View File

@ -1057,8 +1057,10 @@ public class MeituanServiceImpl implements IMeituanService {
// private CloseableHttpClient proxyHttpClient() {
private CloseableHttpClient proxyHttpClient(String ipPort) {
log.error("==============隧道代理返回结果=========="+ipPort);
String proxyHost = ipPort.split(":")[0];
int proxyPort = Integer.valueOf(ipPort.split(":")[1]);
log.error("==============隧道代理返回结果解析地址,端口=========="+proxyHost+","+proxyPort);
String username = proxyProperties.getAccount();
String password = proxyProperties.getPwd();
HttpHost proxy = new HttpHost(proxyHost, proxyPort);