Simplified protocol choice (Tcp/Tls).

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>