Skip to content
Browse files
8255604: java/nio/channels/DatagramChannel/ fails with ja…
… Cannot assign requested address: connect

Backport-of: d5138d1
  • Loading branch information
GoeLin committed Apr 1, 2022
1 parent 4a045a7 commit 164febe
Showing 1 changed file with 1 addition and 1 deletion.
@@ -133,7 +133,7 @@ public static class Reactor implements AutoCloseable, Runnable {
final DatagramChannel dc;

Reactor() throws IOException {
dc = InetSocketAddress(0));
dc = InetSocketAddress(InetAddress.getLoopbackAddress(), 0));

SocketAddress getSocketAddress() throws IOException {

1 comment on commit 164febe

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.