equal
deleted
inserted
replaced
65 |
65 |
66 static Optional<Inet6Address> getLocalAddr() throws Exception { |
66 static Optional<Inet6Address> getLocalAddr() throws Exception { |
67 return NetworkConfiguration.probe() |
67 return NetworkConfiguration.probe() |
68 .ip6Addresses() |
68 .ip6Addresses() |
69 .filter(Inet6Address::isLinkLocalAddress) |
69 .filter(Inet6Address::isLinkLocalAddress) |
70 .map(B6521014::removeScope) |
|
71 .findFirst(); |
70 .findFirst(); |
72 } |
71 } |
73 |
72 |
74 static void test1(Inet6Address sin) throws Exception { |
73 static void test1(Inet6Address sin) throws Exception { |
75 try (ServerSocket ssock = new ServerSocket(0); |
74 try (ServerSocket ssock = new ServerSocket(0); |