Patch 4

Automatically select supported protocol.