From: Keir Fraser Date: Wed, 18 Mar 2009 11:32:46 +0000 (+0000) Subject: xend: Use vnc-listen setting specified in xend config file X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13992^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=34bbd7a252d87460b9ce63727a772cd0ddd081f9;p=xen.git xend: Use vnc-listen setting specified in xend config file If domU frame buffer configuration has no vnclisten attribute set, use the global vnc-listen address specified in xend configuration file when updating vfb location. Currently the hardcoded value 'localhost' is used. Signed-off-by: Jim Fehlig --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 0050a3ac72..f8b8f8a28c 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1410,7 +1410,8 @@ class XendDomainInfo: for dev_uuid, (dev_type, dev_info) in self.info['devices'].items(): if dev_type == 'vfb': old_location = dev_info.get('location') - listen_host = dev_info.get('vnclisten', 'localhost') + listen_host = dev_info.get('vnclisten', \ + XendOptions.instance().get_vnclisten_address()) new_location = '%s:%s' % (listen_host, str(vnc_port)) if old_location == new_location: break