From 02d9cef356f6dbe06d4d52646d3719fa81d388d6 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 4 Sep 2009 10:28:27 +0200 Subject: [PATCH] Allow libvirtd to RPC to external libvirtd * src/remote_internal.c: in remoteOpen() allow the daemon itself to make RPCs to an external libvirtd, but only if the URI is fully specified. --- src/remote_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote_internal.c b/src/remote_internal.c index c1db27c2d8..3dd4609870 100644 --- a/src/remote_internal.c +++ b/src/remote_internal.c @@ -981,7 +981,7 @@ remoteOpen (virConnectPtr conn, int ret, rflags = 0; const char *autostart = getenv("LIBVIRT_AUTOSTART"); - if (inside_daemon) + if (inside_daemon && (!conn->uri || (conn->uri && !conn->uri->server))) return VIR_DRV_OPEN_DECLINED; if (!(priv = remoteAllocPrivateData(conn))) -- GitLab