Skip to content

Commit

Permalink
Export server.Reload()
Browse files Browse the repository at this point in the history
Fixes: b4363df ("srv: export tui reload func")
  • Loading branch information
aymanbagabas committed Oct 20, 2021
1 parent b4363df commit 51fe81b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
type Server struct {
SSHServer *ssh.Server
Config *config.Config
config *appCfg.Config
}

// NewServer returns a new *ssh.Server configured to serve Soft Serve. The SSH
Expand Down Expand Up @@ -48,9 +49,14 @@ func NewServer(cfg *config.Config) *Server {
return &Server{
SSHServer: s,
Config: cfg,
config: ac,
}
}

func (srv *Server) Reload() error {
return srv.config.Reload()
}

func (srv *Server) Start() error {
return srv.SSHServer.ListenAndServe()
}

0 comments on commit 51fe81b

Please sign in to comment.