forked from Hay1tsme/artemis
fixing TLS support for ongeki
This commit is contained in:
parent
4b22bd734e
commit
e769404e16
@ -128,10 +128,11 @@ class OngekiServlet(BaseServlet):
|
|||||||
|
|
||||||
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]:
|
||||||
title_port_int = Utils.get_title_port(self.core_cfg)
|
title_port_int = Utils.get_title_port(self.core_cfg)
|
||||||
|
title_port_ssl_int = Utils.get_title_port_ssl(self.core_cfg)
|
||||||
proto = "https" if self.game_cfg.server.use_https and game_ver >= 120 else "http"
|
proto = "https" if self.game_cfg.server.use_https and game_ver >= 120 else "http"
|
||||||
|
|
||||||
if proto == "https":
|
if proto == "https":
|
||||||
t_port = f":{title_port_int}" if title_port_int != 443 and not self.core_cfg.server.is_using_proxy else ""
|
t_port = f":{title_port_ssl_int}" if title_port_ssl_int != 443 and not self.core_cfg.server.is_using_proxy else ""
|
||||||
|
|
||||||
else:
|
else:
|
||||||
t_port = f":{title_port_int}" if title_port_int != 80 and not self.core_cfg.server.is_using_proxy else ""
|
t_port = f":{title_port_int}" if title_port_int != 80 and not self.core_cfg.server.is_using_proxy else ""
|
||||||
|
Loading…
Reference in New Issue
Block a user