Set protocol version based on selected server

Otherwise people won't be able to connect :-1: