We can filter the allowed versions and sort them before checking the protocol version, that way we can just return the first one found reducing network requests.