We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
resolveIpv4Candidates
HostResolver
1 parent 9601abd commit 3a472e9Copy full SHA for 3a472e9
1 file changed
composeApp/src/androidMain/kotlin/it/unibo/collektive/echo/network/mqtt/HostResolver.android.kt
@@ -3,10 +3,9 @@ package it.unibo.collektive.echo.network.mqtt
3
import java.net.Inet4Address
4
import java.net.InetAddress
5
6
-internal actual fun resolveIpv4Candidates(host: String): List<String> =
7
- runCatching {
8
- InetAddress.getAllByName(host)
9
- .filterIsInstance<Inet4Address>()
10
- .mapNotNull { it.hostAddress }
11
- .distinct()
12
- }.getOrElse { emptyList() }
+internal actual fun resolveIpv4Candidates(host: String): List<String> = runCatching {
+ InetAddress.getAllByName(host)
+ .filterIsInstance<Inet4Address>()
+ .mapNotNull { it.hostAddress }
+ .distinct()
+}.getOrElse { emptyList() }
0 commit comments