Commit 8790ac54 authored by Guido Trotter's avatar Guido Trotter
Browse files

Add the bind-address option to ganeti-rapi

Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarMichael Hanselmann <>
parent 46479775
......@@ -206,6 +206,9 @@ def ParseOptions():
parser.add_option("-f", "--foreground", dest="fork",
help="Don't detach from the current terminal",
default=True, action="store_false")
parser.add_option("-b", "--bind", dest="bind_address",
help="Bind address",
default="", metavar="ADDRESS")
options, args = parser.parse_args()
......@@ -252,7 +255,7 @@ def main():
mainloop = daemon.Mainloop()
server = RemoteApiHttpServer(mainloop, "", options.port,
server = RemoteApiHttpServer(mainloop, options.bind_address, options.port,
ssl_params=ssl_params, ssl_verify_peer=False,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment