mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
pret = PrlVmCfg_SetVNCHostName(sdkdom, glisten && glisten->address ?
|
||||
glisten->address : "");
|
||||
glisten->address : "127.0.0.1");
|
||||
prlsdkCheckRetGoto(pret, cleanup);
|
||||
|
||||
ret = 0;
|
||||
|
|
Loading…
Reference in New Issue