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:
parent
9057310551
commit
cd18cab6d3
@ -61,7 +61,7 @@ function serverlistmgr.sync()
|
|||||||
local url = ("%s/list"):format(
|
local url = ("%s/list"):format(
|
||||||
core.settings:get("serverlist_url"))
|
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
|
if not response.succeeded then
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user