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.
This commit is contained in:
Chris Lalancette 2009-09-04 10:28:27 +02:00 committed by Daniel Veillard
parent e1424a97a9
commit 02d9cef356

View File

@ -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)))