Fix UDP connection
This commit is contained in:
parent
ab1a478867
commit
ced42779be
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user