Automatically select supported protocol.
Merge pull request #4 from ValdasRK/patch-5

Automatically select supported protocol.