Fixed hardcoded cert path for listeners/http
parent
e3f1c1eb47
commit
1ab09ebb32
|
@ -768,8 +768,8 @@ def send_message(packets=None):
|
||||||
certPath = listenerOptions['CertPath']['Value']
|
certPath = listenerOptions['CertPath']['Value']
|
||||||
host = listenerOptions['Host']['Value']
|
host = listenerOptions['Host']['Value']
|
||||||
if certPath.strip() != '' and host.startswith('https'):
|
if certPath.strip() != '' and host.startswith('https'):
|
||||||
context = ("%s/data/empire.pem" % (self.mainMenu.installPath), "%s/data/empire.pem" % (self.mainMenu.installPath))
|
certPath = os.path.abspath(certPath)
|
||||||
app.run(host=bindIP, port=int(port), threaded=True, ssl_context=context)
|
app.run(host=bindIP, port=int(port), threaded=True, ssl_context=(certPath, certPath))
|
||||||
else:
|
else:
|
||||||
app.run(host=bindIP, port=int(port), threaded=True)
|
app.run(host=bindIP, port=int(port), threaded=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue