Repository navigation
Conversation
The GSLT entered during install is stored as gslt in the LinuxGSM
config, but the cs2server start parameters never passed it on. The
server logged into an anonymous game server account and only accepted
LAN connections.
Add +sv_setsteamaccount ${gslt} after +exec ${selfname}.cfg. The game
server config template sets sv_setsteamaccount "", which clears a token
given before it, so the token has to come after the exec. When gslt is
empty the command only prints its usage, so a token set in the game
server config keeps working.
Fixes GameServerManagers#5106
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
The GSLT entered during install is stored as
gsltin the cs2server LinuxGSM config, but the cs2serverstartparametersnever passed it on. The server logged into an anonymous game server account and only accepted LAN connections (No Steam account token was specified ... Connections will be restricted to LAN only).This adds
+sv_setsteamaccount ${gslt}after+exec ${selfname}.cfg. The order matters: the CS2 game server config template setssv_setsteamaccount "", which clears a token given before it. Whengsltis empty, the command only prints its usage line, so servers that set the token in the game server config keep working.Fixes #5106
Affected servers: cs2
Type of change
Testing
cs2serverinstall, setstartparametersin the instance config to each order, ran./cs2server startand checked the console log withgrep -E "logon token|anonymous game server|already logged into steam|Usage: sv_setsteamaccount" log/console/cs2server-console.log.gslt,+exec ${selfname}.cfg +sv_setsteamaccount ${gslt}(this PR):Logging into Steam gameserver account with logon token 'XXXXXXXX...'.gslt,+sv_setsteamaccount ${gslt} +exec ${selfname}.cfg: anonymous login, because the game server config linesv_setsteamaccount ""cleared the token.gslt="", token only in the game server config, order of this PR:Usage: sv_setsteamaccount <login_token>, thenLogging into Steam gameserver account with logon token 'XXXXXXXX...'.gslt: anonymous login, LAN only.cs2serverinstall, CS2 build current on 2026-10-26.Risk and rollback
Breaking changes
Documentation
Checklist
PR will not be merged until all steps are complete.
🤖 Generated with Claude Code