update mai2

This commit is contained in:
2023-10-20 00:31:19 -04:00
parent 046bd1d1f3
commit 21745d7439
5 changed files with 100 additions and 41 deletions

View File

@ -37,8 +37,8 @@ class BaseServlet:
is the matching string, and offset 2 is a dict containing rules for the matcher.
"""
return (
[("render_GET", "/{game}/{version}/{endpoint:.*?}", {'game': R'S...'})],
[("render_POST", "/{game}/{version}/{endpoint:.*?}", {'game': R'S...'})]
[("render_GET", "/{game}/{version}/{endpoint}", {'game': R'S...'})],
[("render_POST", "/{game}/{version}/{endpoint}", {'game': R'S...'})]
)
def setup(self) -> None:
@ -57,7 +57,7 @@ class BaseServlet:
Returns:
Tuple[str, str]: A tuple where offset 0 is the allnet uri field, and offset 1 is the allnet host field
"""
if not self.core_cfg.server.is_using_proxy:
if not self.core_cfg.server.is_using_proxy and Utils.get_title_port(self.core_cfg) != 80:
return (f"http://{self.core_cfg.title.hostname}:{self.core_cfg.title.port}/{game_code}/{game_ver}/", "")
return (f"http://{self.core_cfg.title.hostname}/{game_code}/{game_ver}/", "")