fix: fix sending back incorrect supported functions
This commit is contained in:
parent
e7d0a17500
commit
1d1781c7d7
5 changed files with 30 additions and 11 deletions
|
|
@ -301,7 +301,7 @@ impl<T: CryptoHandler> InternalSocket<T> {
|
|||
for options in &packet.options {
|
||||
match options {
|
||||
SupportedFunctions(functions) => {
|
||||
response.options.push(SupportedFunctions(*functions & 0x04))
|
||||
response.options.push(SupportedFunctions(*functions & 0xFF))
|
||||
}
|
||||
MaximumSubstreamId(max_substream) => {
|
||||
response.options.push(MaximumSubstreamId(*max_substream))
|
||||
|
|
@ -462,7 +462,7 @@ impl<T: CryptoHandler> InternalSocket<T> {
|
|||
MaximumSubstreamId(max_substream) => {
|
||||
response.options.push(MaximumSubstreamId(*max_substream))
|
||||
}
|
||||
SupportedFunctions(funcs) => response.options.push(SupportedFunctions(*funcs)),
|
||||
SupportedFunctions(funcs) => response.options.push(SupportedFunctions(*funcs & 0xFF)),
|
||||
_ => { /* ? */ }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue