Revision 14f5f1b6 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
517 | 517 |
if utils.IsValidIP(vnc_bind_address): |
518 | 518 |
if instance.network_port > constants.VNC_BASE_PORT: |
519 | 519 |
display = instance.network_port - constants.VNC_BASE_PORT |
520 |
if vnc_bind_address == '0.0.0.0':
|
|
520 |
if vnc_bind_address == constants.IP4_ADDRESS_ANY:
|
|
521 | 521 |
vnc_arg = ':%d' % (display) |
522 | 522 |
else: |
523 | 523 |
vnc_arg = '%s:%d' % (vnc_bind_address, display) |
Also available in: Unified diff