mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
SYN-187: Set a more sensible default for the content_addr
This commit is contained in:
parent
bde9ee5a4c
commit
7993e3d10d
@ -35,8 +35,11 @@ class ServerConfig(Config):
|
|||||||
if not args.content_addr:
|
if not args.content_addr:
|
||||||
host = args.server_name
|
host = args.server_name
|
||||||
if ':' not in host:
|
if ':' not in host:
|
||||||
host = "%s:%d" % (host, args.bind_port)
|
host = "%s:%d" % (host, args.unsecure_port)
|
||||||
args.content_addr = "https://%s" % (host,)
|
else:
|
||||||
|
host = host.split(':')[0]
|
||||||
|
host = "%s:%d" % (host, args.unsecure_port)
|
||||||
|
args.content_addr = "http://%s" % (host,)
|
||||||
|
|
||||||
self.content_addr = args.content_addr
|
self.content_addr = args.content_addr
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user