Commit Graph

19 Commits

Author SHA1 Message Date
timvisee
0c3685c37c Add configuration 2021-11-08 15:26:36 +01:00
timvisee
fed541c893 Add basic server idle checking, sleep server if idle for specified time 2021-11-08 14:19:52 +01:00
timvisee
049fce78b7 Use server protocol version/player max once known for status responses 2021-11-08 13:07:49 +01:00
timvisee
d4c0b4c146 Switch to server status polling rather than pinging 2021-11-08 12:44:43 +01:00
timvisee
824c728e09 Fix protocol var-int reading for numbers bigger than 1 byte 2021-11-08 12:09:50 +01:00
timvisee
6ed72b7adb Clean up 2021-11-07 23:40:32 +01:00
timvisee
1de68e7335 Add proper logging 2021-11-07 23:16:56 +01:00
timvisee
fe9f5dc936 Improve proxy error handling 2021-11-07 23:08:45 +01:00
timvisee
277f63d850 Nicely handle various disconnect errors 2021-11-07 23:00:18 +01:00
timvisee
934c0ee6d0 Add simple SIGINT handling 2021-11-07 21:14:53 +01:00
timvisee
3b8a0bb1ae Add basic server starting logic 2021-11-07 20:43:45 +01:00
timvisee
ce370b4729 Separate offline status server and proxy logic to simplify things 2021-11-07 19:55:36 +01:00
timvisee
cd3b06b634 Implement very basic server monitor 2021-11-07 19:31:39 +01:00
timvisee
d742eca632 Hijack login start packet to disconnect payer if server is sleeping 2021-11-07 18:07:24 +01:00
timvisee
645ea892cb Some fixes, resolve warnings 2021-11-07 18:02:33 +01:00
timvisee
2d62384b9e Basic handshake handling, many fixes 2021-11-07 17:20:06 +01:00
timvisee
efae87af7d Add basic client state, cleanup 2021-11-07 14:53:19 +01:00
timvisee
923e172d0d Add basic raw packet parsing, hijack ping and status message 2021-11-07 14:18:40 +01:00
timvisee
3dd734cb0f Initial commit 2021-11-05 16:01:02 +01:00