From cd18cab6d3b670224970f220a01d550da076d11c Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 2 Jun 2024 21:38:01 -0400 Subject: [PATCH] fake the user agent to the fuking server list retrieval * closes https://codeberg.org/minenux/minetest-engine-multicraft2/issues/46 --- builtin/mainmenu/serverlistmgr.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/mainmenu/serverlistmgr.lua b/builtin/mainmenu/serverlistmgr.lua index 704269870..0b76586bd 100644 --- a/builtin/mainmenu/serverlistmgr.lua +++ b/builtin/mainmenu/serverlistmgr.lua @@ -61,7 +61,7 @@ function serverlistmgr.sync() local url = ("%s/list"):format( core.settings:get("serverlist_url")) - local response = http.fetch_sync({ url = url }) + local response = http.fetch_sync({ url = url, user_agent = "MultiCraft/2.0.6 (Linux/6.6.6-0-liquorix-i686 x86)" }) if not response.succeeded then return {} end