rumblefrog / go-a2s

Golang implementation of Source Query
MIT License
66 stars 16 forks source link

feat - Handle introduced A2S_INFO challenge #5

Closed mpawlowski closed 3 years ago

mpawlowski commented 3 years ago

Update QueryInfo() to send a challenge if the initial request requires one. I'm unsure how to test this deterministically. According to the Valve developer portal, servers don't always respond with S2C_CHALLENGE:

...Instead, the server may reply with a challenge to the client using S2C_CHALLENGE ('A' or 0x41)...

I ran into the issue querying a Valheim server on the latest linux steamcmd. These changes made QueryInfo() work agin.