From 4bd46280c7bc9e71bc1edcc3daf1c915b7123beb Mon Sep 17 00:00:00 2001 From: Vauff Date: Sun, 18 Dec 2022 23:24:25 -0500 Subject: [PATCH] Re-enable A2S_RULES queries on CS:GO --- amstats/query.go | 6 ------ blaster.go | 4 +--- valve/packet.go | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/amstats/query.go b/amstats/query.go index c0103db..7a4a805 100644 --- a/amstats/query.go +++ b/amstats/query.go @@ -94,12 +94,6 @@ func queryServer(addr *net.TCPAddr) (*Server, error) { return nil, err } - // We can't query rules for CSGO servers anymore because Valve. - csgo := (info.Ext != nil && info.Ext.AppId == valve.App_CSGO) - if csgo { - return nil, nil - } - rules, err := query.QueryRules() if err != nil { return nil, err diff --git a/blaster.go b/blaster.go index 8fc3a70..4051cdf 100644 --- a/blaster.go +++ b/blaster.go @@ -254,9 +254,7 @@ func main() { out.SpecTvName = info.SpecTv.Name } - // We can't query rules for CSGO servers anymore because Valve. - csgo := (info.Ext != nil && info.Ext.AppId == valve.App_CSGO) - if !csgo && !*flag_norules { + if !*flag_norules { rules, err := query.QueryRules() if err != nil { out.Rules = map[string]string{ diff --git a/valve/packet.go b/valve/packet.go index b2955c1..e053b1d 100644 --- a/valve/packet.go +++ b/valve/packet.go @@ -14,7 +14,7 @@ import ( "time" ) -const kMaxPacketSize = 1400 +const kMaxPacketSize = 5000 var ErrOutOfBounds = errors.New("read out of bounds")