Skip to content

Commit

Permalink
move socket address util to nonJvm
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 13, 2024
1 parent fddab9e commit b0029a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ import io.ktor.network.sockets.*
import io.ktor.util.network.*

internal actual fun SocketAddress.toNetworkAddress(): NetworkAddress {
val inetAddress = this as? InetSocketAddress ?: error("Expected inet socket address")
return NetworkAddress(inetAddress.hostname, inetAddress.port)
check(this is InetSocketAddress) { "Expected inet socket address" }
return NetworkAddress(hostname, port)
}

This file was deleted.

0 comments on commit b0029a1

Please sign in to comment.