1
0
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-11-17 00:22:32 +01:00

Fix stupid bug

This commit is contained in:
carbotaniuman 2020-07-04 12:11:24 -05:00
parent 76d19d7493
commit fde00ecb7f

View File

@ -82,13 +82,11 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi
.setConnectTimeout(3000) .setConnectTimeout(3000)
.setSocketTimeout(3000) .setSocketTimeout(3000)
.setConnectionRequestTimeout(3000) .setConnectionRequestTimeout(3000)
.setLocalAddress( .apply {
if (clientHostname != "0.0.0.0") { if (clientHostname != "0.0.0.0") {
InetAddress.getByName(clientHostname) setLocalAddress(InetAddress.getByName(clientHostname))
} else {
InetAddress.getLocalHost()
} }
) }
.build()) .build())
.setMaxConnTotal(THREADS_TO_ALLOCATE) .setMaxConnTotal(THREADS_TO_ALLOCATE)
.setMaxConnPerRoute(THREADS_TO_ALLOCATE) .setMaxConnPerRoute(THREADS_TO_ALLOCATE)