aboutsummaryrefslogtreecommitdiff
path: root/src/serverlist.cpp
AgeCommit message (Collapse)Author
2022-01-01Print announce error response (#11878)ShadowNinja
Fix HTTPFetch caller and request ID to 64 bits Check that allocated caller ID is not DISCARD Print body if serverlist request returns error Don't print control characters from HTTP responses Document special HTTPFetch caller IDs Allow unicode to be printed
2021-01-22Use JSON for favorites, move server list code to Lua (#10085)rubenwardy
Co-authored-by: sfan5 <sfan5@live.de>
2020-09-26Log server announce on updates and deletes too (#10177)Tyler Schwend
2020-09-16Clean up server-side translations, remove global variable (#10075)rubenwardy
2020-07-29Add PUT and DELETE request + specific method value to HTTP API (#9909)Lejo
2019-11-08Make core.get_favorites("local") ignore duplicates (#7926)Paul Ouellette
2017-09-26Update JsonCPP to 1.8.3 (#6466)Loïc Blot
* Update JsonCPP to 1.8.3 * Fix deprecated functions Json::FastWriter, Json::StyledWriter and Json::Reader are marked deprecated since 1.1 and are deprecated in 0.8 but not shown at compilation time. Use new methods to serialize/deserialize
2017-09-12Network: Remove large parts of deprecated legacy code (#6404)SmallJoker
Also remove the setting 'send_pre_v25_init' Keep old enum entries for obsolete commands
2017-08-19Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)Loïc Blot
* Code modernization: src/p*, src/q*, src/r*, src/s* (partial) * empty function * default constructor/destructor * for range-based loops * use emplace_back instead of push_back * C++ STL header style * Spelling: vertice -> vertex
2017-03-18Server list cleanupShadowNinja
This removes the hacky server_dedicated pseudo-setting.
2016-08-10Fixes for compiling with a newer (system) jsoncpp (#4429)Rogier-5
* Move included json code to jsoncpp subdirectory This is needed to avoid having to specify the minetest src directory as a system include when fixing the json includes. * Fix json includes They used "", so that the compiler searches the project's directory first. The result was that when compiling with a system jsoncpp, the project's own version of json.h was still included, instead of the system version. The includes now use <>, so a system location, or one specified with '-Ilocation' is searched only. * Fix for jsoncpp deprecated function warning When compiling with a newer version of jsoncpp (and ENABLE_SYSTEM_JSONCPP=true), jsoncpp emits a warning about a deprecated function that minetest uses.
2016-03-15Add option to not send pre v25 init packetest31
The legacy init packet (pre v25) sends information about the client's password that a server could use to log in to other servers if the username and password are the same. All the other benefits of SRP of protocol v25 are missed if the legacy init packet is still sent during connection creation. This patch adds an option to not send the v25 init packet. Not sending the v25 packet means breaking compat with pre v25 servers, but as the option is not enabled by default, no servers are affected unless the user explicitly flips the switch. More than 90% of the servers on the serverlist support post v25 protocols. The patch also fixes a bug with greying out of non compliant servers being done wrongly, the min and max params were mixed.
2015-08-25Change i++ to ++iDavid Jones
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
2015-02-18Server: announce MIN/MAX protocol version supported to serverlist. Client: ↵est31
check serverlist Client now informs about incompatible servers from the list, this permits to prevent the protocol movements. Server announces its supported protocol versions to master server
2015-01-23Send real port to server listShadowNinja
2014-11-10Serverlist: announce mg_name from map_meta.txt instead of minetest.confKahrl
2014-11-08Replace setting unlimited_player_transfer_distance with player_transfer_distanceSmallJoker
2014-09-18Reduce indentation of HTTPFetchOngoingShadowNinja
Also clean up some related things.
2014-06-30Fix serverlist code style, const-correctness, and typesShadowNinja
2014-06-30Fix server list boolean typing and alignmentShadowNinja
2014-06-30Add support for multipart/form-data to HTTPFetch for server announcingShadowNinja
2014-06-19Remove ugly curl struct pointer from jsonFetchValue signaturesapier
2014-06-19Remove a lot of superfluous ifndef USE_CURL checkssapier
2014-04-18Remove liquid_finite and weatherproller
2014-01-07Fix wrong named masterserver announce variableproller
2014-01-07Send long announce as POST, show OS in useragentproller
Add lag reporting to masterserver (average dtime) StyledWriter -> FastWriter in masterserver announce
2013-12-13Use httpfetch_async in serverlist announce codeKahrl
2013-12-03Rename names -> can_see_far_names in announceproller
2013-12-03Remove link to #, add unlimited_player_transfer_distance to announceproller
2013-11-06Correct useragent in http queriesproller
Net struct init
2013-11-04Masterserver show privs and js autoloadproller
2013-10-18Masterserver updateproller
2013-09-28Show git hash in version string at top left corner of windowKahrl
2013-08-13Dont write directly to files but rather write and copy a tmp filePilzAdam
2013-08-03More info in serverlistproller
2013-07-13Masterserver mods announse, ipv6, better curl errorsproller
2013-07-02Replace C++ mainmenu by formspec powered onesapier
2013-05-04Fix favorite Server List on WindowsSfan5
2013-04-25Fix serverlist on -DRUN_IN_PLACE=0 (use path_user instead of path_share)Zeg9
2013-03-30Masterserver: report gameid, uptime, cosmetic fixes on server web pageproller
2013-03-03Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);Ilya Zhuravlev
2013-03-01Fix "longjmp causes uninitialized stack frame" (serverlist.cpp)Ilya Zhuravlev
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-02-22new auto masterserverproller
2013-01-21Add a list of servers to the "Multiplayer" tabJeija
If USE_CURL is set, it also downloads a list from a remote server. The url of this list is configurable in minetest.conf using the setting "serverlist_url" The local list of favorite servers is saved in client/serverlist/filename filename is also configureable using the setting "serverlist_file"