Fix launcher verification session check and socket IP resolution

This commit is contained in:
SCOPEDD committed 2026-09-29 02:03:08 -04:00
1 parent 522e3a5717
commit c7aa563dac
6 files changed
+185 -29

No files matched your search

+2 -1
View File
@@ -168,9 +168,10 @@ pub async fn event(
// Remember where signed-in players launch from, so game servers can
// require "joined through the launcher" (see game server settings).
if let (Some(ip), "launch") = (&ip, kind) {
sqlx::query("INSERT INTO launcher_sessions (user_id, ip, created_at) VALUES (?, ?, ?)")
sqlx::query("INSERT INTO launcher_sessions (user_id, ip, username, created_at) VALUES (?, ?, ?, ?)")
.bind(user.id)
.bind(ip)
.bind(&user.username)
.bind(crate::db::now())
.execute(&state.db)
.await?;