add host field to allnet response for some games to fix an issue with nginx

This commit is contained in:
Hay1tsme committed 2023-11-20 11:54:13 -05:00
1 parent 8bd361d3e3
commit e941c6a606
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -59,9 +59,9 @@ class DivaServlet(BaseServlet):
def get_allnet_info(self, game_code: str, game_ver: int, keychip: str) -> Tuple[str, str]:
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}:{Utils.get_title_port(self.core_cfg)}/DivaServlet/", "")
return (f"http://{self.core_cfg.title.hostname}:{Utils.get_title_port(self.core_cfg)}/DivaServlet/", self.core_cfg.title.hostname)
return (f"http://{self.core_cfg.title.hostname}/DivaServlet/", "")
return (f"http://{self.core_cfg.title.hostname}/DivaServlet/", self.core_cfg.title.hostname)
@classmethod
def is_game_enabled(