feat: Steam and Minecraft game server checks
Steam servers are asked for A2S_INFO like the server browser does, answering the challenge newer servers send. Minecraft Java Edition gets the server list ping, Bedrock Edition a RakNet unconnected ping. A minimum of free slots can be required. The protocols are implemented directly; tested against protocol-accurate test servers and once by hand against public Java and Bedrock servers. Closes #96 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
8b30ab4e79
commit
36301ed146
11 files changed
+1682
-1101
No files matched your search
@@ -651,6 +651,10 @@ func fillForm(f *web.MonitorForm, m store.Monitor) {
|
||||
SecretSet: slices.Contains(secrets, "secret"), PasswordSet: slices.Contains(secrets, "password"), CommunitySet: slices.Contains(secrets, "community"),
|
||||
Version: sn.Version, OID: sn.OID, Condition: sn.Condition, Value: sn.Value,
|
||||
}
|
||||
case check.Steam, check.Minecraft:
|
||||
var c check.GameConfig
|
||||
_ = json.Unmarshal(m.Config, &c)
|
||||
f.Game = web.GameForm{Edition: c.Edition, MinFreeSlots: c.MinFreeSlots}
|
||||
case check.Alertmanager:
|
||||
var c check.AlertmanagerConfig
|
||||
_ = json.Unmarshal(m.Config, &c)
|
||||
|
||||
Reference in new issue
Block a user