bugfix
This commit is contained in:
parent
803c0f5112
commit
5f8aca9960
@ -39,8 +39,6 @@ class AHApp(web.Application):
|
||||
super().__init__(*args, **kw)
|
||||
self.user_data = DictObject()
|
||||
self.middlewares.insert(0, real_ip_middleware())
|
||||
[ self.on_startup.append(c) for c in startup_coros ]
|
||||
[ self.on_cleanup.append(c) for c in cleanup_coros ]
|
||||
|
||||
def set_data(self, k, v):
|
||||
self.user_data[k] = v
|
||||
@ -117,6 +115,8 @@ class ConfiguredServer:
|
||||
if platform != 'win32':
|
||||
reuse_port = True
|
||||
print('reuse_port=', reuse_port)
|
||||
[ self.app.on_startup.append(c) for c in startup_coros ]
|
||||
[ self.app.on_cleanup.append(c) for c in cleanup_coros ]
|
||||
web.run_app(self.build_app(),host=config.website.host or '0.0.0.0',
|
||||
port=port,
|
||||
reuse_port=reuse_port,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user