mirror of
https://github.com/slackhq/nebula.git
synced 2024-11-10 17:24:37 +08:00
don't steal error
This commit is contained in:
parent
9333a8e3b7
commit
f03d895ebf
1 changed files with 4 additions and 1 deletions
5
main.go
5
main.go
|
@ -79,10 +79,13 @@ func Main(configPath string, configTest bool, buildVersion string) {
|
||||||
// TODO: make sure mask is 4 bytes
|
// TODO: make sure mask is 4 bytes
|
||||||
tunCidr := cs.certificate.Details.Ips[0]
|
tunCidr := cs.certificate.Details.Ips[0]
|
||||||
routes, err := parseRoutes(config, tunCidr)
|
routes, err := parseRoutes(config, tunCidr)
|
||||||
unsafeRoutes, err := parseUnsafeRoutes(config, tunCidr)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
l.WithError(err).Fatal("Could not parse tun.routes")
|
l.WithError(err).Fatal("Could not parse tun.routes")
|
||||||
}
|
}
|
||||||
|
unsafeRoutes, err := parseUnsafeRoutes(config, tunCidr)
|
||||||
|
if err != nil {
|
||||||
|
l.WithError(err).Fatal("Could not parse tun.unsafe_routes")
|
||||||
|
}
|
||||||
|
|
||||||
ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd"))
|
ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd"))
|
||||||
wireSSHReload(ssh, config)
|
wireSSHReload(ssh, config)
|
||||||
|
|
Loading…
Reference in a new issue