Fix protocol recognition

Signed-off-by: Kiril Nesenko <knesenko@redhat.com>