Revision 14f5f1b6
b/lib/daemon.py | ||
---|---|---|
551 | 551 |
choices=["no", "yes", "only"]) |
552 | 552 |
|
553 | 553 |
if daemon_name in constants.DAEMONS_PORTS: |
554 |
default_bind_address = "0.0.0.0"
|
|
554 |
default_bind_address = constants.IP4_ADDRESS_ANY
|
|
555 | 555 |
default_port = utils.GetDaemonPort(daemon_name) |
556 | 556 |
|
557 | 557 |
# For networked daemons we allow choosing the port and bind address |
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