From 0e739b2077358fa77ba7026abeccd33130eaa125 Mon Sep 17 00:00:00 2001 From: Midorica Date: Fri, 10 Nov 2023 23:20:30 -0500 Subject: [PATCH] adding SSL support for SAO --- titles/sao/index.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/titles/sao/index.py b/titles/sao/index.py index dfc97a4..63ad3f7 100644 --- a/titles/sao/index.py +++ b/titles/sao/index.py @@ -76,11 +76,13 @@ class SaoServlet(BaseServlet): return True def get_allnet_info(self, game_code: str, game_ver: int, keychip: str) -> Tuple[str, str]: - tport = Utils.get_title_port(self.core_cfg) - return ( - f"http://{self.core_cfg.title.hostname}:{tport}/", - f"{self.core_cfg.title.hostname}/", - ) + if not self.core_cfg.server.is_using_proxy and self.core_cfg.title.port_ssl: + return ( + f"https://{self.core_cfg.title.hostname}:{self.core_cfg.title.port_ssl}/", + f"{self.core_cfg.title.hostname}/", + ) + + return (f"http://{self.core_cfg.title.hostname}:{self.core_cfg.title.port}/", "") def get_mucha_info(self, core_cfg: CoreConfig, cfg_dir: str) -> Tuple[bool, str]: if not self.game_cfg.server.enable: