修复sshd无法启动的问题
This commit is contained in:
@ -8,6 +8,7 @@ import (
|
||||
"next-terminal/server/config"
|
||||
"next-terminal/server/constant"
|
||||
"next-terminal/server/service"
|
||||
"next-terminal/server/sshd"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
@ -110,6 +111,10 @@ func Run() error {
|
||||
return _cli.ChangeEncryptionKey(config.GlobalCfg.EncryptionKey, config.GlobalCfg.NewEncryptionKey)
|
||||
}
|
||||
|
||||
if config.GlobalCfg.Sshd.Enable {
|
||||
go sshd.Sshd.Serve()
|
||||
}
|
||||
|
||||
if config.GlobalCfg.Server.Cert != "" && config.GlobalCfg.Server.Key != "" {
|
||||
return app.Server.StartTLS(config.GlobalCfg.Server.Addr, config.GlobalCfg.Server.Cert, config.GlobalCfg.Server.Key)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user