Set protocol version method based on client or server option.