Skip to content

Commit

Permalink
allow invalid response_types for GetChallengeResponses
Browse files Browse the repository at this point in the history
I havent dug into the purpose of response_types yet, but this package short circuits when a response type is given that it does not expect. We have an open issue with the package here serverstf#83. For now, this unblocks us with rocksteady
  • Loading branch information
andykais authored Mar 10, 2020
1 parent 963086a commit 1040d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valve/source/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ class InfoResponse(Message):
class GetChallengeResponse(Message):

fields = (
ByteField("response_type", validators=[lambda x: x == 0x41]),
ByteField("response_type", validators=[lambda x: x == 0x41 or x == 69]),
LongField("challenge")
)

Expand Down

0 comments on commit 1040d7d

Please sign in to comment.