v0.1.1: correctly choose protocol in client config