YOLO: use correct IP for guestbook

This commit is contained in:
Roscoe 2026-02-12 22:46:54 +00:00
commit 99873d9d1d
Signed by: RoscoeDaWah
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ public static function create(Request $request): GuestbookEntry {
$newEntry = new GuestbookEntry;
$newEntry->name = $request->get('name');
$newEntry->message = $request->get('message');
$newEntry->ip = $request->ip();
$newEntry->ip = $request->header('X-Forwarded-For');
$newEntry->agent = $request->userAgent();
$newEntry->flagged = true;
$newEntry->save();

View file

@ -5,7 +5,7 @@
return [
'name' => env('APP_NAME', 'wah.moe'),
'version' => '2026.01.25',
'version' => '2026.02.12',
'env' => env('APP_ENV', 'production'),
'debug' => (bool)env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),