Merge "Use HostAddressOpt for opts that accept IP and hostnames"

This commit is contained in:
Jenkins 2017-03-22 16:35:53 +00:00 committed by Gerrit Code Review
commit 43362700d8

View File

@ -23,7 +23,7 @@ for URL substitutions.
""")
public_bind_host = cfg.StrOpt(
public_bind_host = cfg.HostAddressOpt(
'public_bind_host',
default='0.0.0.0', # nosec : Bind to all interfaces by default for
# backwards compatibility.
@ -50,7 +50,7 @@ public_port = cfg.PortOpt(
The port number for the public service to listen on.
"""))
admin_bind_host = cfg.StrOpt(
admin_bind_host = cfg.HostAddressOpt(
'admin_bind_host',
default='0.0.0.0', # nosec : Bind to all interfaces by default for
# backwards compatibility.