Commit Graph

98 Commits

Author SHA1 Message Date
Hugo Manrique
0392fce6c3 Fix XSS by parsing player counts as raw data and validating favicon URIs (#116)
* Fix XSS by parsing player counts as raw data (instead of parsing it)

* Ensure the returned favicon is a data URI

* Force server favicon size to 64px

* Increase specificity of data URI validation

The previous commit would happily accept any domain (or subdomain) that started with "data"
2019-09-05 16:15:44 -05:00
Cryptkeeper
b2c72c0bfb Revert "Properly sort ping listing to ensure we don't wrongly smooth"
This reverts commit a250b3977ac1a3731eeb73f5060472745f17d9ed.
2017-08-09 00:35:13 -05:00
Cryptkeeper
a250b3977a Properly sort ping listing to ensure we don't wrongly smooth 2017-05-27 08:05:25 +08:00
Hugo Manrique
0955e8dbcd Allow custom Graph colors (#76) 2017-04-03 22:10:46 -05:00
Cryptkeeper!
ac0ea0d5d7 3.1.0 (#69) 2017-03-14 17:07:58 -05:00
Cryptkeeper!
2c4f3e0865 3.0.0 2017-03-11 17:44:21 -06:00
Cryptkeeper
d52652e8a2 Require mcpe-ping-fixed 2016-07-05 14:36:29 -05:00
Cryptkeeper
9167ba67a4 Don't spam debug output 2016-06-10 20:24:25 -05:00
theminecoder
0034d7fc03 Support SRV record unfurling for PC networks 2016-06-09 13:26:32 +10:00
Devin Ryan
43c284aa8a Show supported versions for PC servers
The Minetrack daemon will send a different protocol version each time
it pings a server. If a server responds with the same protocol version,
it is assumed that the version is supported, and it is shown on the
page above the server's player count.

The list of versions to be tried is stored in config.json.
At the moment, 4 versions are checked:
- 4 (Minecraft 1.7.2)
- 5 (Minecraft 1.7.10)
- 47 (Minecraft 1.8)
- 107 (Minecraft 1.9)
2016-03-01 21:09:38 -06:00
Cryptkeeper
9ac6502394 Allow the server to control category visibility 2016-02-23 19:19:15 -06:00
Cryptkeeper
798dda8f12 Fix frontend not updating publicConfig.json
This changes the handshake sequence to use “bootTime” (a unique key
based off the time) to make sure the frontend configuration matches the
current one. If not, the client pulls the update and validates before
requesting the listing.
2016-02-06 18:26:29 -06:00
Cryptkeeper
143e99876a Ability to categorize networks 2016-02-06 17:34:33 -06:00
Cryptkeeper
08376575ab I should probably sleep. 2016-02-01 05:44:56 -06:00
Cryptkeeper
c1c66c8f50 Fix bad references 2016-02-01 05:44:07 -06:00
Cryptkeeper
5edd13ac5d Log this for debug purposes 2016-02-01 05:43:23 -06:00
Cryptkeeper
37fdf25eae Add some comments 2016-02-01 05:14:33 -06:00
Cryptkeeper
f6a27f0469 Fix legacy code problems 2016-02-01 05:09:56 -06:00
Cryptkeeper
3dc10f571f Correctly ignore old servers in the db 2016-02-01 04:55:37 -06:00
Cryptkeeper
1483a62711 Fix some bad references 2016-02-01 04:53:40 -06:00
Cryptkeeper
01a11263ce Use names instead of IPs 2016-02-01 04:49:54 -06:00
Cryptkeeper
878fe6496b Move servers into servers.json instead of config.json 2016-02-01 04:39:31 -06:00
Cryptkeeper
2c7526e442 Code clean up 2015-12-26 14:18:09 -06:00
Cryptkeeper
454627b2a9 Numerous graph fixes 2015-12-18 21:23:24 -06:00
Cryptkeeper
5a9be282f7 Work on frontend, fix removal of useless data 2015-12-18 18:25:59 -06:00
Cryptkeeper
a0524ce41b Ignore data for networks that don't exist in config.json 2015-12-18 02:43:44 -06:00
Cryptkeeper
d07a315208 Graph smoothing 2015-12-18 02:17:39 -06:00
Cryptkeeper
8f66475a28 Big graph, away! 2015-12-18 01:45:38 -06:00
Cryptkeeper
b6a76a5ee7 Tweak database schema 2015-12-10 22:25:24 -06:00
Cryptkeeper
51bbb58146 Don't require the module if it isn't enabled. 2015-12-10 22:11:52 -06:00
Cryptkeeper
1120e7506b Remove early code 2015-12-10 22:09:41 -06:00
Cryptkeeper
01f977b16e Database logging via sqlite3 2015-12-10 22:06:27 -06:00
Cryptkeeper
82752767b9 Drop the try catches, this might make it a bit unstable until we work out some bugs. 2015-11-25 19:29:02 -06:00
Cryptkeeper
5012cd7771 Fix horribly broken code 2015-11-24 17:24:17 -06:00
Cryptkeeper
56233745e0 Tweak design, numerous fixes 2015-11-09 01:03:03 -06:00
Cryptkeeper
d64252d35d Begin work on frontend! 2015-11-08 18:34:17 -06:00
Cryptkeeper
e213561436 Fix method reference 2015-11-03 01:41:27 -06:00
Cryptkeeper
3373ebc9ee Use a basic time tracker instead of Date manipulation 2015-11-03 01:40:09 -06:00
Cryptkeeper
da5dd8b026 Configurable rates, handle ping exceptions, Mojang service tracking 2015-11-02 22:32:54 -06:00
Cryptkeeper
72172514b0 Update email to hello@cryptkpr.me from cryptkeeper@hypixel.net 2015-11-02 02:24:55 -06:00
Cryptkeeper
f1eb418636 Drop mcpc_buffer, use mc-ping-updated 2015-11-02 01:42:11 -06:00
Cryptkeeper
a21ed3f6fb Log HTTP requests 2015-11-02 01:08:54 -06:00
Cryptkeeper
1c1f49aa43 Quick clean up 2015-11-02 01:04:49 -06:00
Cryptkeeper
97aecdcc09 PE support using the mcpe-ping module 2015-11-02 00:57:30 -06:00
Cryptkeeper
0cbfcf60d7 Fix timeout on connections 2015-11-02 00:01:04 -06:00
Cryptkeeper
dec1536c6c Implement Winston powered logger 2015-11-01 23:46:24 -06:00
Cryptkeeper
89bd722fa1 Setup structure, dynamic routing from config.json 2015-11-01 23:19:27 -06:00
Cryptkeeper
b3f0d8aa18 First commit, most of the backend system! :) 2015-11-01 22:56:08 -06:00