From ada885ef416cbfb545d3acb23358da44e53fa07a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 25 May 2023 16:50:15 -0700 Subject: [PATCH] Update session DB with actual remote IP https://github.com/webmin/authentic-theme/issues/1653 --- miniserv.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/miniserv.pl b/miniserv.pl index bb6a6a0ab..f3ec8f728 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -1105,9 +1105,10 @@ while(1) { print $outfd "0 0\n"; } else { - # Session is OK + # Session is OK, update last time + # and remote IP print $outfd "2 $user\n"; - $sessiondb{$skey} = "$user $time_now $ip"; + $sessiondb{$skey} = "$user $time_now $vip"; } } }