mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
Update to 4.2.0 - Configuration changes (big but old way still works, naming changes) & Implement https://github.com/kataras/iris/issues/409
This commit is contained in:
5
ssh.go
5
ssh.go
@@ -428,6 +428,11 @@ type SSHServer struct {
|
||||
Logger *log.Logger // log.New(...)/ $qinstance.Logger, fill it when you want to receive debug and info/warnings messages
|
||||
}
|
||||
|
||||
// NewSSHServer returns a new empty SSHServer
|
||||
func NewSSHServer() *SSHServer {
|
||||
return &SSHServer{}
|
||||
}
|
||||
|
||||
// Enabled returns true if SSH can be started, if Host != ""
|
||||
func (s *SSHServer) Enabled() bool {
|
||||
if s == nil {
|
||||
|
||||
Reference in New Issue
Block a user