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)
.setSocketTimeout(3000)
.setConnectionRequestTimeout(3000)
.setLocalAddress(
.apply {
if (clientHostname != "0.0.0.0") {
InetAddress.getByName(clientHostname)
} else {
InetAddress.getLocalHost()
setLocalAddress(InetAddress.getByName(clientHostname))
}
)
}
.build())
.setMaxConnTotal(THREADS_TO_ALLOCATE)
.setMaxConnPerRoute(THREADS_TO_ALLOCATE)