message now indicates what to do when using ssh and when using sftp
This commit is contained in:
		
							parent
							
								
									28b95ff5db
								
							
						
					
					
						commit
						31e59d998d
					
				| @ -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)
 | ||||||
| 		//}
 | 		//}
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user