/[classpath]/classpath/java/net/InetAddress.java
ViewVC logotype

Diff of /classpath/java/net/InetAddress.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31.2.1 by gnu_andrew, Sat Jan 15 17:01:55 2005 UTC revision 1.31.2.2 by gnu_andrew, Sun Jan 16 02:14:48 2005 UTC
# Line 407  public class InetAddress implements Seri Line 407  public class InetAddress implements Seri
407        }        }
408    
409      // Try to find the FDQN now      // Try to find the FDQN now
410      // FIXME: This does not work with IPv6.      InetAddress address;
411      InetAddress address = new Inet4Address(getAddress(), null);      byte[] ipaddr = getAddress();
412    
413        if (ipaddr.length == 16)
414          address = new Inet6Address(getAddress(), null);
415        else
416          address = new Inet4Address(getAddress(), null);
417    
418      return address.getHostName();      return address.getHostName();
419    }    }
420    

Legend:
Removed from v.1.31.2.1  
changed lines
  Added in v.1.31.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26