From 16651feca02798f00a55f123c3e119a981576f53 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Tue, 12 Apr 2016 11:15:09 +0200 Subject: [PATCH] agent: Enable IPv6 connectivity for KVM Agent to Management Server IPv4 is still preferred, so if the hostname of the Management Server returns a A and AAAA-record the Agent will still connect to the server over IPv4. This situation will however allow to use a hostname which only has a AAAA-record. In that case the Agent will connect to the Management Server over IPv6. --- agent/src/com/cloud/agent/AgentShell.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/agent/src/com/cloud/agent/AgentShell.java b/agent/src/com/cloud/agent/AgentShell.java index 961c1060176..5e0da68c6d6 100644 --- a/agent/src/com/cloud/agent/AgentShell.java +++ b/agent/src/com/cloud/agent/AgentShell.java @@ -409,12 +409,7 @@ public class AgentShell implements IAgentShell, Daemon { /* By default we only search for log4j.xml */ LogUtils.initLog4j("log4j-cloud.xml"); - /* - By default we disable IPv6 for now to maintain backwards - compatibility. At a later point in time we can change this - behavior to prefer IPv6 over IPv4. - */ - boolean ipv6disabled = true; + boolean ipv6disabled = false; String ipv6 = getProperty(null, "ipv6disabled"); if (ipv6 != null) { ipv6disabled = Boolean.parseBoolean(ipv6);