- Json::Value root = fetchJsonValue(
- (g_settings->get("serverlist_url") + "/list").c_str(), NULL);
+ std::ostringstream geturl;
+
+ u16 proto_version_min = CLIENT_PROTOCOL_VERSION_MIN;
+
+ geturl << g_settings->get("serverlist_url") <<
+ "/list?proto_version_min=" << proto_version_min <<
+ "&proto_version_max=" << CLIENT_PROTOCOL_VERSION_MAX;
+ Json::Value root = fetchJsonValue(geturl.str(), NULL);