ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r990692 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java
Date Mon, 30 Aug 2010 04:05:46 GMT
Author: jkf
Date: Mon Aug 30 04:05:46 2010
New Revision: 990692

URL: http://svn.apache.org/viewvc?rev=990692&view=rev
Log:
fixed error in patch committed yesterday.
Site Local with address no longer overwrites global without.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java?rev=990692&r1=990691&r2=990692&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/HostInfo.java Mon Aug 30 04:05:46
2010
@@ -195,7 +195,7 @@ public class HostInfo extends Task {
                 // address without hostname
                 if (best.isLoopbackAddress()
                         || best.isLinkLocalAddress()
-                        || !hasHostName(best)) {
+                        || (best.isSiteLocalAddress() && !hasHostName(best))) {
                     best = current;
                 }
             } else {



Mime
View raw message