message now indicates what to do when using ssh and when using sftp

This commit is contained in:
Erik Brakkee 2024-08-12 16:18:27 +02:00
parent 28b95ff5db
commit 31e59d998d

View File

@ -357,7 +357,7 @@ func check() {
state.expiryIsNear = expiryTime.Sub(now) < state.advanceWarningDuration state.expiryIsNear = expiryTime.Sub(now) < state.advanceWarningDuration
if state.expiryIsNear { if state.expiryIsNear {
messageUsers( messageUsers(
fmt.Sprintf("Session will expire at %s, press any key to extend it.", expiryTime.Format(time.DateTime))) fmt.Sprintf("Session will expire at %s, press any key to (ssh) or execute a command (sftp) to extend it.", expiryTime.Format(time.DateTime)))
//for _, session := range state.clients { //for _, session := range state.clients {
// printHelpMessage(session.sshSession) // printHelpMessage(session.sshSession)
//} //}