|
|
@ -336,8 +336,8 @@ public class TbHttpClient { |
|
|
String hostname = properties.getProperty(hostProperty); |
|
|
String hostname = properties.getProperty(hostProperty); |
|
|
int port = Integer.parseInt(properties.getProperty(portProperty)); |
|
|
int port = Integer.parseInt(properties.getProperty(portProperty)); |
|
|
|
|
|
|
|
|
checkProxyHost(config.getProxyHost()); |
|
|
checkProxyHost(hostname); |
|
|
checkProxyPort(config.getProxyPort()); |
|
|
checkProxyPort(port); |
|
|
|
|
|
|
|
|
var proxy = option |
|
|
var proxy = option |
|
|
.type(ProxyProvider.Proxy.HTTP) |
|
|
.type(ProxyProvider.Proxy.HTTP) |
|
|
@ -362,8 +362,8 @@ public class TbHttpClient { |
|
|
ProxyProvider.Proxy type = SOCKS_VERSION_5.equals(version) ? ProxyProvider.Proxy.SOCKS5 : ProxyProvider.Proxy.SOCKS4; |
|
|
ProxyProvider.Proxy type = SOCKS_VERSION_5.equals(version) ? ProxyProvider.Proxy.SOCKS5 : ProxyProvider.Proxy.SOCKS4; |
|
|
int port = Integer.parseInt(properties.getProperty(SOCKS_PROXY_PORT)); |
|
|
int port = Integer.parseInt(properties.getProperty(SOCKS_PROXY_PORT)); |
|
|
|
|
|
|
|
|
checkProxyHost(config.getProxyHost()); |
|
|
checkProxyHost(hostname); |
|
|
checkProxyPort(config.getProxyPort()); |
|
|
checkProxyPort(port); |
|
|
|
|
|
|
|
|
ProxyProvider.Builder proxy = option |
|
|
ProxyProvider.Builder proxy = option |
|
|
.type(type) |
|
|
.type(type) |
|
|
|