From 6e5c15c925e484aeda592e5da8a98f93239a8da7 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 15 Jan 2023 20:47:54 +0800 Subject: [PATCH] feat(user): log http_x_forwarded_for in history --- web/app/models/UOJUser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/web/app/models/UOJUser.php b/web/app/models/UOJUser.php index d86d1f3..29ba52f 100644 --- a/web/app/models/UOJUser.php +++ b/web/app/models/UOJUser.php @@ -382,6 +382,7 @@ class UOJUser { $extra = UOJUser::getExtra($user); $cur = [ 'addr' => $info['remote_addr'], + 'forwarded_addr' => $info['http_x_forwarded_for'], 'ua' => substr($info['http_user_agent'], 0, UOJUser::MAX_UA_LEN), 'last' => UOJTime::$time_now_str ];