forked from Hay1tsme/artemis
adding SSL support for SAO
This commit is contained in:
parent
c4f2232457
commit
0e739b2077
@ -76,11 +76,13 @@ class SaoServlet(BaseServlet):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def get_allnet_info(self, game_code: str, game_ver: int, keychip: str) -> Tuple[str, str]:
|
def get_allnet_info(self, game_code: str, game_ver: int, keychip: str) -> Tuple[str, str]:
|
||||||
tport = Utils.get_title_port(self.core_cfg)
|
if not self.core_cfg.server.is_using_proxy and self.core_cfg.title.port_ssl:
|
||||||
return (
|
return (
|
||||||
f"http://{self.core_cfg.title.hostname}:{tport}/",
|
f"https://{self.core_cfg.title.hostname}:{self.core_cfg.title.port_ssl}/",
|
||||||
f"{self.core_cfg.title.hostname}/",
|
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]:
|
def get_mucha_info(self, core_cfg: CoreConfig, cfg_dir: str) -> Tuple[bool, str]:
|
||||||
if not self.game_cfg.server.enable:
|
if not self.game_cfg.server.enable:
|
||||||
|
Loading…
Reference in New Issue
Block a user