Allow to use either tcp or udp connections or only one of them