310 Commits

Author SHA1 Message Date
Alayan
50988c6c60 Fix #3687 2019-10-26 02:28:42 +02:00
Benau
04dd5a8bfb Add IPv6 ban table 2019-10-25 12:44:50 +08:00
Benau
0217eaf173 Add sqlite function for ipv6 cidr testing 2019-10-25 09:20:36 +08:00
Benau
958868526f Allow live kicking from ban list 2019-10-23 14:42:22 +08:00
Benau
a5e5b20a19 Fix #3875 2019-10-23 13:34:52 +08:00
Benau
1625d55de5 Reset AI peer for empty server 2019-10-17 12:18:11 +08:00
Benau
3b75740163 Check peer first to avoid crash 2019-10-16 10:43:36 +08:00
Benau
11897da80c Don't kick ai peer for idling 2019-10-16 01:16:45 +08:00
Benau
843ca083d5 Fix empty player count when resetting server 2019-10-15 19:15:22 +08:00
Benau
cf412c947c Show player count with AI in server browser 2019-10-15 16:28:48 +08:00
Benau
1614868b5d Add AI handling for online racing games 2019-10-15 16:19:30 +08:00
Benau
396e55a39d Show android robot icon for bots in lobby 2019-10-09 15:28:09 +08:00
Benau
a26f67bf16 Allow using AI in lan racing game 2019-10-09 14:08:22 +08:00
riso
0e4f875443 Clean IPV4/ipv4 to IPv4, IPV6/ipv6 to IPv6 2019-09-03 14:24:03 -05:00
Benau
58ad947443 Add IPV6 support to stats database 2019-08-23 11:01:00 +08:00
Benau
7becfb311d Use more real address in server 2019-08-21 10:46:04 +08:00
Benau
3f0db672d6 Allow getting public IPV6 address with STUN for server 2019-08-20 00:54:13 +08:00
Benau
88adfbc8df Limit chat to 1000 characters 2019-08-11 02:11:48 +08:00
Benau
5ac5932d3a Allow specifying database waiting timeout 2019-07-08 00:26:11 +08:00
Benau
275dbe3631 Show country flag in soccer if client supports 2019-06-16 15:25:53 +08:00
Benau
a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Benau
86bc8bd877 Add country code info to submit ranking 2019-05-14 01:04:20 +08:00
Benau
7ee774118b Move validation checking to sendPacketToAllPeersWith 2019-05-13 15:41:15 +08:00
Benau
bb65ba927e Always discard unknown synchronous message instead of keeping it
Synchronous message can only be EVENT_TYPE_MESSAGE anyway
2019-05-13 14:02:04 +08:00
Benau
fff6c1d51f Add success status to player who reports 2019-05-13 13:25:43 +08:00
Benau
5b6b38346c Clean up protocol manager 2019-05-13 12:02:21 +08:00
Benau
d7bffa4ade Check again for max players if it's pending connection
Should fix #3874
2019-05-12 13:39:16 +08:00
Benau
4fe2fc5f58 Add last session player info if sqlite supports window functions 2019-05-12 13:04:43 +08:00
Benau
21322fdf9e Allow showing full country info in views 2019-05-11 10:16:38 +08:00
Benau
b3bbe934d4 Sort full stats with connected_time
So newest connection come first in sql viewer
2019-05-11 07:53:38 +08:00
Benau
81dafa44d2 Use sqlite3_busy_handler to allow writing lock waiting 2019-05-10 20:14:36 +08:00
Benau
f54af02b45 Use sqlite3_open_v2 with SQLITE_OPEN_SHAREDCACHE 2019-05-10 16:16:09 +08:00
Benau
66c34c7443 Always call sqlite3_finalize to avoid deadlock 2019-05-10 15:35:02 +08:00
Benau
21a23dc9e6 Add optional ip geolocation table support 2019-05-10 11:35:04 +08:00
Benau
005418d611 Use sqlite3_bind_text to allow special characters in text 2019-05-10 09:30:02 +08:00
Benau
ef9b80e5af Add server uid to player reports table 2019-05-10 01:31:38 +08:00
Benau
44618c2a52 Rename to country code for a better name 2019-05-10 00:43:21 +08:00
Benau
a569d1f823 Clear expired player reports if necessary 2019-05-09 16:23:07 +08:00
Benau
bf3466d4d1 Write report info to table 2019-05-09 15:45:02 +08:00
Benau
65e53f19e5 Add framework for reporting player 2019-05-09 14:36:47 +08:00
Benau
fce5827c7d Allow using empty ban table name to disable its functionality 2019-05-09 13:09:50 +08:00
Benau
c90d32e35d Add easySQLQuery for simple sql query 2019-05-09 12:29:29 +08:00
Benau
c38278fbc1 Add report_player network capabilities 2019-05-09 11:22:19 +08:00
Benau
7113c4bcec Fix typo 2019-05-08 13:04:12 +08:00
Benau
a2b951d769 Add per minute database cleanup 2019-05-08 12:51:50 +08:00
Benau
ebf95ee958 Use monotonic clock to avoid system time changes 2019-05-06 15:17:19 +08:00
Benau
2bfa7dd5f8 Add first and last played time to player stats view 2019-05-06 14:45:11 +08:00
Benau
ab9e8b7dcf Add some useful default view from stats table 2019-05-06 12:52:29 +08:00
Benau
9e06fe9b6f Add current query to error log message 2019-05-06 01:16:27 +08:00
Benau
932b17a7e5 Don't show verbose player info in log if database management 2019-05-06 00:52:11 +08:00