Skip to content
Snippets Groups Projects
Commit 7993e3d1 authored by Mark Haines's avatar Mark Haines
Browse files

SYN-187: Set a more sensible default for the content_addr

parent bde9ee5a
No related branches found
No related tags found
No related merge requests found
......@@ -35,8 +35,11 @@ class ServerConfig(Config):
if not args.content_addr:
host = args.server_name
if ':' not in host:
host = "%s:%d" % (host, args.bind_port)
args.content_addr = "https://%s" % (host,)
host = "%s:%d" % (host, args.unsecure_port)
else:
host = host.split(':')[0]
host = "%s:%d" % (host, args.unsecure_port)
args.content_addr = "http://%s" % (host,)
self.content_addr = args.content_addr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment