fix: 增强后端Socket连接诊断日志

- connection事件记录远程IP/传输方式/是否携带auth token
- Web客户端注册记录请求来源IP,便于排查连接问题
This commit is contained in:
wdvipa
2026-02-15 15:52:37 +08:00
parent bd6b6be7ea
commit 5ed65090b9
3 changed files with 9 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"version": "1.0.0",
"savedAt": "2026-02-14T07:46:12.968Z",
"savedAt": "2026-02-15T07:13:12.135Z",
"users": [
{
"id": "admin_1762534368537",
@@ -16,7 +16,7 @@
"passwordHash": "$2b$10$3c/70RbBH4y7zhYwxk8ldOcls3Bj6kt3cSMidTeaMUVb1EJXH4GMy",
"role": "superadmin",
"createdAt": "2025-11-07T16:53:46.677Z",
"lastLoginAt": "2026-02-14T07:46:12.968Z"
"lastLoginAt": "2026-02-15T07:13:12.135Z"
}
]
}