This commit is contained in:
@@ -32,11 +32,11 @@ public class SearchImageService {
|
||||
private final OkHttpClient googleHttpClient;
|
||||
|
||||
public SearchImageService() {
|
||||
Proxy proxy = new Proxy(Proxy.Type.HTTP,
|
||||
new InetSocketAddress("193.46.217.94", 3128));
|
||||
// Proxy proxy = new Proxy(Proxy.Type.HTTP,
|
||||
// new InetSocketAddress("193.46.217.94", 3128));
|
||||
|
||||
this.yandexHttpClient = new OkHttpClient.Builder()
|
||||
.proxy(proxy)
|
||||
// .proxy(proxy)
|
||||
.connectTimeout(35, TimeUnit.SECONDS)
|
||||
.writeTimeout(35, TimeUnit.SECONDS)
|
||||
.readTimeout(35, TimeUnit.SECONDS)
|
||||
@@ -47,7 +47,7 @@ public class SearchImageService {
|
||||
.build();
|
||||
|
||||
this.googleHttpClient = new OkHttpClient.Builder()
|
||||
.proxy(proxy)
|
||||
// .proxy(proxy)
|
||||
.connectTimeout(35, TimeUnit.SECONDS)
|
||||
.writeTimeout(35, TimeUnit.SECONDS)
|
||||
.readTimeout(35, TimeUnit.SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user