mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
vz: set localhost as vnc address
We should set localhost as vnc address in case of empty string. Because Virtuozzo sets 0.0.0.0 as default vnc address.
This commit is contained in:
parent
35e45760ee
commit
97b31f8672
@ -2967,7 +2967,7 @@ static int prlsdkApplyGraphicsParams(PRL_HANDLE sdkdom,
|
|||||||
|
|
||||||
glisten = virDomainGraphicsGetListen(gr, 0);
|
glisten = virDomainGraphicsGetListen(gr, 0);
|
||||||
pret = PrlVmCfg_SetVNCHostName(sdkdom, glisten && glisten->address ?
|
pret = PrlVmCfg_SetVNCHostName(sdkdom, glisten && glisten->address ?
|
||||||
glisten->address : "");
|
glisten->address : "127.0.0.1");
|
||||||
prlsdkCheckRetGoto(pret, cleanup);
|
prlsdkCheckRetGoto(pret, cleanup);
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user