jdk/src/share/classes/sun/nio/ch/ServerSocketAdaptor.java
changeset 18212 22f8c33b0690
parent 14342 8435a30053c1
child 22604 9b394795e216
equal deleted inserted replaced
18211:74aeb4741e3d 18212:22f8c33b0690
    78     }
    78     }
    79 
    79 
    80     public InetAddress getInetAddress() {
    80     public InetAddress getInetAddress() {
    81         if (!ssc.isBound())
    81         if (!ssc.isBound())
    82             return null;
    82             return null;
    83         return Net.asInetSocketAddress(ssc.localAddress()).getAddress();
    83         return Net.getRevealedLocalAddress(ssc.localAddress()).getAddress();
       
    84 
    84     }
    85     }
    85 
    86 
    86     public int getLocalPort() {
    87     public int getLocalPort() {
    87         if (!ssc.isBound())
    88         if (!ssc.isBound())
    88             return -1;
    89             return -1;