mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Refactor SSH init code, fix directory creation for TrustedUserCAKeys file (#20299)
* Refactor SSH init code, fix directory creation for TrustedUserCAKeys file * Update modules/ssh/init.go Co-authored-by: zeripath <art27@cantab.net> * fix lint copyright * Update modules/ssh/init.go Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		@@ -29,7 +29,7 @@ func listen(server *ssh.Server) {
 | 
			
		||||
	log.Info("SSH Listener: %s Closed", server.Addr)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Unused informs our cleanup routine that we will not be using a ssh port
 | 
			
		||||
func Unused() {
 | 
			
		||||
// builtinUnused informs our cleanup routine that we will not be using a ssh port
 | 
			
		||||
func builtinUnused() {
 | 
			
		||||
	graceful.GetManager().InformCleanup()
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user