test/jdk/java/net/ipv6tests/B6521014.java
changeset 55375 96c7427456f9
parent 47216 71c04702a3d5
child 55649 ad8e3b295615
equal deleted inserted replaced
55374:5c4f1b7c753b 55375:96c7427456f9
    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);