use one application for all hosts

This commit is contained in:
Unrud 2018-09-06 09:12:53 +02:00
parent dec2ad8bea
commit 9b029ac084

View File

@ -288,8 +288,8 @@ def serve(configuration, shutdown_socket=None):
"Failed to parse address %r: %s" % (host, e)) from e "Failed to parse address %r: %s" % (host, e)) from e
server_addresses.append((address, port)) server_addresses.append((address, port))
for server_address in server_addresses:
application = Application(configuration) application = Application(configuration)
for server_address in server_addresses:
try: try:
server = ServerCopy(server_address, RequestHandlerCopy) server = ServerCopy(server_address, RequestHandlerCopy)
server.set_app(application) server.set_app(application)