You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NETWORKING.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,9 +224,9 @@ You have the best gaming experience when choosing server having all players less
224
224
225
225
Currently STK uses sqlite (if building with sqlite3 on) for server management with the following functions at the moment:
226
226
1. Server statistics
227
-
2.IP / online ID ban list
227
+
2.IPV4 / online ID ban list
228
228
3. Player reports
229
-
4.IP geolocation
229
+
4.IPV4 geolocation
230
230
231
231
You need to create a database in sqlite first, run `sqlite3 stkservers.db` in the folder where (all) your server_config.xml(s) located.
232
232
@@ -236,6 +236,7 @@ CREATE TABLE IF NOT EXISTS (table name above)
236
236
(
237
237
host_id INTEGER UNSIGNED NOT NULLPRIMARY KEY, -- Unique host id in STKHost of each connection session for a STKPeer
238
238
ip INTEGER UNSIGNED NOT NULL, -- IP decimal of host
239
+
ipv6 TEXTNOT NULL DEFAULT '', -- IPV6 (if exists) in string of host (only created if ipv6 server)
239
240
port INTEGER UNSIGNED NOT NULL, -- Port of host
240
241
online_id INTEGER UNSIGNED NOT NULL, -- Online if of the host (0 for offline account)
241
242
username TEXTNOT NULL, -- First player name in the host (if the host has splitscreen player)
@@ -272,7 +273,7 @@ CREATE TABLE IF NOT EXISTS (table name above)
272
273
273
274
If you want to see flags and readable names of countries in the above views, you need to initialize `v(server database version)_countries` table, check [this script](tools/generate-countries-table.py).
274
275
275
-
For IP and online ID ban list, player reports or IP mapping, you need to create one yourself:
276
+
For IPV4 and online ID ban list, player reports or IP mapping, you need to create one yourself:
276
277
```sql
277
278
CREATETABLEip_ban
278
279
(
@@ -301,11 +302,13 @@ CREATE TABLE player_reports
301
302
(
302
303
server_uid TEXTNOT NULL, -- Report from which server unique id (config filename)
303
304
reporter_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player who reports
305
+
reporter_ipv6 TEXTNOT NULL DEFAULT '', -- IPV6 (if exists) in string of player who reports (only needed for ipv6 server)
304
306
reporter_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player who reports, 0 for offline player
305
307
reporter_username TEXTNOT NULL, -- Player name who reports
306
308
reported_time TIMESTAMPNOT NULL DEFAULT CURRENT_TIMESTAMP, -- Time of reporting
307
309
info TEXTNOT NULL, -- Report info by reporter
308
310
reporting_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player being reported
311
+
reporting_ipv6 TEXTNOT NULL DEFAULT '', -- IPV6 (if exists) in string of player who reports (only needed for ipv6 server)
309
312
reporting_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player being reported, 0 for offline player
310
313
reporting_username TEXTNOT NULL-- Player name being reported
0 commit comments