mirror of https://github.com/slackhq/nebula.git
main: fix dropped error (#1002)
This isn't an actual issue because the current implementation of NewSSHServer never returns an error (https://github.com/slackhq/nebula/blob/v1.7.2/sshd/server.go#L56), but still good to fix so no surprises happen in the future.
This commit is contained in:
parent
87b628ba24
commit
77a8ce1712
3
main.go
3
main.go
|
@ -71,6 +71,9 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
|
||||||
tunCidr := certificate.Details.Ips[0]
|
tunCidr := certificate.Details.Ips[0]
|
||||||
|
|
||||||
ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd"))
|
ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd"))
|
||||||
|
if err != nil {
|
||||||
|
return nil, util.ContextualizeIfNeeded("Error while creating SSH server", err)
|
||||||
|
}
|
||||||
wireSSHReload(l, ssh, c)
|
wireSSHReload(l, ssh, c)
|
||||||
var sshStart func()
|
var sshStart func()
|
||||||
if c.GetBool("sshd.enabled", false) {
|
if c.GetBool("sshd.enabled", false) {
|
||||||
|
|
Loading…
Reference in New Issue