1
0

fake the user agent to the fuking server list retrieval

* closes https://codeberg.org/minenux/minetest-engine-multicraft2/issues/46
This commit is contained in:
mckaygerhard 2024-06-02 21:38:01 -04:00
parent 9057310551
commit cd18cab6d3

View File

@ -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