mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Make internal SSH server host key path configurable (#14918)
* Make SSH server host key path configurable * make it possible to have multiple keys * Make gitea.rsa the default key * Add some more logging Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -48,11 +48,11 @@ type Server struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NewServer creates a server on network at provided address
 | 
			
		||||
func NewServer(network, address string) *Server {
 | 
			
		||||
func NewServer(network, address, name string) *Server {
 | 
			
		||||
	if GetManager().IsChild() {
 | 
			
		||||
		log.Info("Restarting new server: %s:%s on PID: %d", network, address, os.Getpid())
 | 
			
		||||
		log.Info("Restarting new %s server: %s:%s on PID: %d", name, network, address, os.Getpid())
 | 
			
		||||
	} else {
 | 
			
		||||
		log.Info("Starting new server: %s:%s on PID: %d", network, address, os.Getpid())
 | 
			
		||||
		log.Info("Starting new %s server: %s:%s on PID: %d", name, network, address, os.Getpid())
 | 
			
		||||
	}
 | 
			
		||||
	srv := &Server{
 | 
			
		||||
		wg:      sync.WaitGroup{},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user