Fix UDP connection

This commit is contained in:
Alexander Nozik 2023-05-27 21:36:46 +03:00
parent ab1a478867
commit ced42779be

View File

@ -114,7 +114,7 @@ public object UdpPort : PortFactory {
coroutineContext: CoroutineContext = context.coroutineContext,
): ChannelPort = ChannelPort(context,coroutineContext){
DatagramChannel.open().apply {
bind(InetSocketAddress(host, port))
connect(InetSocketAddress(host, port))
configureBlocking(false)
}
}