diff --git a/ahserver/configuredServer.py b/ahserver/configuredServer.py index 6dd1c96..0dba6ef 100755 --- a/ahserver/configuredServer.py +++ b/ahserver/configuredServer.py @@ -1,4 +1,5 @@ import os,sys +from sys import platform import time import ssl from socket import * @@ -57,9 +58,12 @@ class ConfiguredServer(AppLogger): ssl_context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_context.load_cert_chain(config.website.ssl.crtfile, config.website.ssl.keyfile) - + reuse_port = None + if platform != 'win32': + resue_port = True web.run_app(self.init_auth(),host=config.website.host or '0.0.0.0', port=port, + reuse_port=reuse_port, ssl_context=ssl_context) def configPath(self,config):