use one application for all hosts
This commit is contained in:
parent
dec2ad8bea
commit
9b029ac084
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user