mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
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:
parent
e1424a97a9
commit
02d9cef356
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user