You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2016/11/13 18:16:55 UTC

[1/2] karaf git commit: [KARAF-4517] Use localhost for host if it's 0.0.0.0 (coming from the cfg file)

Repository: karaf
Updated Branches:
  refs/heads/master 8f3365e12 -> fbb6c648c


[KARAF-4517] Use localhost for host if it's 0.0.0.0 (coming from the cfg file)


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/7e8d399f
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/7e8d399f
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/7e8d399f

Branch: refs/heads/master
Commit: 7e8d399f610f9cb4a2032fca2ece83f31be983da
Parents: 8f3365e
Author: Xilai Dai <xl...@talend.com>
Authored: Tue Nov 8 17:14:45 2016 +0800
Committer: Jean-Baptiste Onofr� <jb...@apache.org>
Committed: Sun Nov 13 18:43:36 2016 +0100

----------------------------------------------------------------------
 client/src/main/java/org/apache/karaf/client/ClientConfig.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/7e8d399f/client/src/main/java/org/apache/karaf/client/ClientConfig.java
----------------------------------------------------------------------
diff --git a/client/src/main/java/org/apache/karaf/client/ClientConfig.java b/client/src/main/java/org/apache/karaf/client/ClientConfig.java
index 72bd0d4..471ba06 100644
--- a/client/src/main/java/org/apache/karaf/client/ClientConfig.java
+++ b/client/src/main/java/org/apache/karaf/client/ClientConfig.java
@@ -62,6 +62,9 @@ public class ClientConfig {
         if (host.contains("${")) {
             host = replaceVariable(host, "localhost", customCfg);
         }
+        if (host.contains("0.0.0.0")) {
+            host = "localhost";
+        }
         if (portString.contains("${")) {
             portString = replaceVariable(portString, "8101", customCfg);
         }


[2/2] karaf git commit: [KARAF-4517] This closes #264

Posted by jb...@apache.org.
[KARAF-4517] This closes #264


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/fbb6c648
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/fbb6c648
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/fbb6c648

Branch: refs/heads/master
Commit: fbb6c648c9481bcb1c5bcab5c9c2d11d4cbfe292
Parents: 8f3365e 7e8d399
Author: Jean-Baptiste Onofr� <jb...@apache.org>
Authored: Sun Nov 13 19:16:48 2016 +0100
Committer: Jean-Baptiste Onofr� <jb...@apache.org>
Committed: Sun Nov 13 19:16:48 2016 +0100

----------------------------------------------------------------------
 client/src/main/java/org/apache/karaf/client/ClientConfig.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------