mirror of
https://github.com/openwrt-xiaomi/xmir-patcher.git
synced 2026-09-22 14:54:23 +03:00
connect7: Fix path for certfile
This commit is contained in:
+2
-2
@@ -123,8 +123,8 @@ class XmirHttpServer(HTTPServer):
|
||||
def server_bind(self):
|
||||
import ssl
|
||||
root_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
certfile = f'{root_dir}\\data\\https\\cert.crt'
|
||||
keyfile = f'{root_dir}\\data\\https\\cert.key'
|
||||
certfile = f'{root_dir}/data/https/cert.crt'
|
||||
keyfile = f'{root_dir}/data/https/cert.key'
|
||||
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
|
||||
ctx.check_hostname = False
|
||||
ctx.verify_mode = ssl.CERT_OPTIONAL
|
||||
|
||||
Reference in New Issue
Block a user