Fix: Add User-Agent header to Vintage Story master server request#725
Fix: Add User-Agent header to Vintage Story master server request#725nunopaiva1 wants to merge 2 commits into
Conversation
CosminPerRam
left a comment
There was a problem hiding this comment.
Please also add a line in the CHANGELOG.md file.
| state.raw.servers = response?.data || [] | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Please add a end file new line
|
All set. I added the changelog entry and the newline as requested. Let me know if anything else needs changing! |
|
This has been blocked by us on purpose because users of this software are completely overloading our services. It is being spammed to no end. To whoever uses this software, please refrain from using our online service to get your own servers player count - read it out from the That being said, we can look into a more straightforward solution at some point in the future. Kindly request this to be reverted again. |
|
@tyronx is the If RCON or other ways are not available (and not planned to), we would add an API option for users to specify this header (so people would have to acknowledge this problem). Sorry for the very late response. |
|
we don't support rcon (yet). You need to read it out from stdout. the screen command can do that |
|
@nunopaiva1 Were you able to work on an alternative solution as mentioned? @tyronx Would you mind giving more details on the Thank you! |
The Vintage Story master server returns HTTP 403 unless a valid User-Agent is provided.
This change adds a proper User-Agent header to allow successful querying.