kopia lustrzana https://github.com/vitorpamplona/amethyst
Increases timeout to Tor connections
rodzic
1b6aa621cd
commit
a2b3cfb991
|
@ -77,7 +77,7 @@ object HttpClientManager {
|
||||||
proxy: Proxy?,
|
proxy: Proxy?,
|
||||||
timeout: Duration,
|
timeout: Duration,
|
||||||
): OkHttpClient {
|
): OkHttpClient {
|
||||||
val seconds = if (proxy != null) timeout.seconds * 2 else timeout.seconds
|
val seconds = if (proxy != null) timeout.seconds * 3 else timeout.seconds
|
||||||
val duration = Duration.ofSeconds(seconds)
|
val duration = Duration.ofSeconds(seconds)
|
||||||
return OkHttpClient.Builder()
|
return OkHttpClient.Builder()
|
||||||
.proxy(proxy)
|
.proxy(proxy)
|
||||||
|
|
Ładowanie…
Reference in New Issue