Skip to content

Commit

Permalink
Not longer assuming every connection will have VirtualChannels
Browse files Browse the repository at this point in the history
Improved the situation with #294
  • Loading branch information
obilodeau committed Nov 26, 2021
1 parent 9401b53 commit fcf60e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyrdp/mitm/SlowPathMITM.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ def onDemandActive(self, pdu: DemandActivePDU):
supported[Order.TS_NEG_DRAWNINEGRID_INDEX] = 0
orders.orderSupport = supported

pdu.parsedCapabilitySets[CapabilityType.CAPSTYPE_VIRTUALCHANNEL].flags = \
VirtualChannelCompressionFlag.VCCAPS_NO_COMPR
if CapabilityType.CAPSTYPE_VIRTUALCHANNEL in pdu.parsedCapabilitySets:
pdu.parsedCapabilitySets[CapabilityType.CAPSTYPE_VIRTUALCHANNEL].flags = \
VirtualChannelCompressionFlag.VCCAPS_NO_COMPR

0 comments on commit fcf60e1

Please sign in to comment.