From 291d897832d38e09746ee08c23b85b59cc7df989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Wed, 6 Apr 2022 14:07:07 +0000 Subject: [PATCH] fix: group-specific timeouts: advertise the proper timeout that will be applied when connecting --- bin/shell/osh.pl | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/bin/shell/osh.pl b/bin/shell/osh.pl index 1402c51..6adc303 100755 --- a/bin/shell/osh.pl +++ b/bin/shell/osh.pl @@ -1433,17 +1433,15 @@ else { osh_debug("Account is immune to idle"); } else { - if ($config->{'idleLockTimeout'}) { + if ($idleTimeout{'lock'}) { print( " /!\\ Your session will be locked after " - . $config->{'idleLockTimeout'} + . $idleTimeout{'lock'} . " seconds of inactivity, use `--osh unlock' to unlock it\n"); } - if ($config->{'idleKillTimeout'}) { - print( " /!\\ Your session will be killed after " - . $config->{'idleKillTimeout'} - . " seconds of inactivity.\n"); + if ($idleTimeout{'kill'}) { + print(" /!\\ Your session will be killed after " . $idleTimeout{'kill'} . " seconds of inactivity.\n"); } - print "\n" if ($config->{'idleLockTimeout'} || $config->{'idleKillTimeout'}); + print "\n" if ($idleTimeout{'lock'} || $idleTimeout{'kill'}); } }