4.20.2.1. Controlling the protocol version

You can set restrictions on the protocol version used in the connection.

Example 4.38. Disabling RDP5 protocol by force-reverting it to RDP4

The following proxy class enables RDP4 sessions only, and reverts the session to RDP4 if a client tries to initiate an RDP5 session.

class MyRdpProxy(RdpProxy):
        def config(self):
                RdpProxy.config(self)
                self.enable_rdp5 = FALSE
                self.force_rdp4 = TRUE
                self.enable_rdp4 = TRUE