From 5fe1fe899bfe55b1c27fb03a7d7e76b0b67b9cc7 Mon Sep 17 00:00:00 2001 From: Rorkh <78957156+Rorkh@users.noreply.github.com> Date: Thu, 27 Jan 2022 05:56:45 +0500 Subject: Custom 25565 port page (#5369) + Add a custom response when an HTTP request comes in to port 25565... Co-authored-by: Alexander Harkness --- src/Server.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Server.h') diff --git a/src/Server.h b/src/Server.h index 6fa2002e4..479fbb865 100644 --- a/src/Server.h +++ b/src/Server.h @@ -96,6 +96,8 @@ public: const AString & GetResourcePackUrl(void) { return m_ResourcePackUrl; } + std::string_view GetCustomRedirectUrl(void) { return m_CustomRedirectUrl; } + bool Start(void); bool Command(cClientHandle & a_Client, AString & a_Cmd); @@ -222,6 +224,7 @@ private: size_t m_MaxPlayers; bool m_bIsHardcore; AString m_ResourcePackUrl; + AString m_CustomRedirectUrl; /** Map of protocol version to Forge mods (map of ModName -> ModVersionString) */ std::map m_ForgeModsByVersion; -- cgit v1.2.3