mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Fix stupid bug
This commit is contained in:
parent
76d19d7493
commit
fde00ecb7f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue