Repository navigation
master075: classic masters keep our announce (cut strings, real player limit, mastercgi) - #40
Merged
Merged
Conversation
…player limit, mastercgi in the 0.75 config mastercgi (66.135.15.57, LSD's default list) drops an announce whose name, mode or map is longer than 31, 7 or 20 bytes, without a word: the announce cuts them to that, never inside a UTF-8 sequence, for every master. The announce carries the server's own max_players (at most 32) instead of 32 always, and the player count stays within it. config-075.toml lists mastercgi next to Build and Shoot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The 0.75 profile's announce to the classic masters (
Legacy/Master075.c):66.135.15.57, the default list of LSD) drops the whole announce, silently, when one of them is longer (net/read.c,read_str). The cut applies to every master, so the Build and Shoot row is cut too.max_playersfrom the config (at most 32) instead of 32 always; the player count stays within it.config-075.tomllists mastercgi next to Build and Shoot:address = ["67.205.183.163:32886", "66.135.15.57:32886"]. The code's default (no config) is unchanged.07-network.typ) updated.Tested (local)
make serverandmake config-check(both profiles).net/daemon built on macOS and run on 127.0.0.1; the 0.75 server with the name[NGS] Classic CTF 0.75 — São Paulo teste longoandmax_players = 20was listed as"name":"[NGS] Classic CTF 0.75 — São","players_max":20,"game_version":"0.75"(enet6 against mastercgi's classic ENet works).Not covered
The old code was not run against mastercgi (the drop is read from its source), and the live mastercgi at 66.135.15.57 was not announced to.