diff --git a/cmd/nebula-cert/sign.go b/cmd/nebula-cert/sign.go index bfff252..d122b2f 100644 --- a/cmd/nebula-cert/sign.go +++ b/cmd/nebula-cert/sign.go @@ -44,7 +44,7 @@ func newSignFlags() *signFlags { sf.outCertPath = sf.set.String("out-crt", "", "Optional: path to write the certificate to") sf.outQRPath = sf.set.String("out-qr", "", "Optional: output a qr code image (png) of the certificate") sf.groups = sf.set.String("groups", "", "Optional: comma separated list of groups") - sf.subnets = sf.set.String("subnets", "", "Optional: comma seperated list of subnet this cert can serve for") + sf.subnets = sf.set.String("subnets", "", "Optional: comma separated list of subnet this cert can serve for") return &sf } diff --git a/cmd/nebula-cert/sign_test.go b/cmd/nebula-cert/sign_test.go index bf94af6..6227f3c 100644 --- a/cmd/nebula-cert/sign_test.go +++ b/cmd/nebula-cert/sign_test.go @@ -48,7 +48,7 @@ func Test_signHelp(t *testing.T) { " -out-qr string\n"+ " \tOptional: output a qr code image (png) of the certificate\n"+ " -subnets string\n"+ - " \tOptional: comma seperated list of subnet this cert can serve for\n", + " \tOptional: comma separated list of subnet this cert can serve for\n", ob.String(), ) } diff --git a/hostmap.go b/hostmap.go index c15c3cf..841594b 100644 --- a/hostmap.go +++ b/hostmap.go @@ -19,7 +19,7 @@ const MaxRemotes = 10 // How long we should prevent roaming back to the previous IP. // This helps prevent flapping due to packets already in flight -const RoamingSupressSeconds = 2 +const RoamingSuppressSeconds = 2 type HostMap struct { sync.RWMutex //Because we concurrently read and write to our maps diff --git a/outside.go b/outside.go index 20aa4f1..be51dd4 100644 --- a/outside.go +++ b/outside.go @@ -147,10 +147,10 @@ func (f *Interface) handleHostRoaming(hostinfo *HostInfo, addr *udpAddr) { hostinfo.logger().WithField("newAddr", addr).Debug("lighthouse.remote_allow_list denied roaming") return } - if !hostinfo.lastRoam.IsZero() && addr.Equals(hostinfo.lastRoamRemote) && time.Since(hostinfo.lastRoam) < RoamingSupressSeconds*time.Second { + if !hostinfo.lastRoam.IsZero() && addr.Equals(hostinfo.lastRoamRemote) && time.Since(hostinfo.lastRoam) < RoamingSuppressSeconds*time.Second { if l.Level >= logrus.DebugLevel { hostinfo.logger().WithField("udpAddr", hostinfo.remote).WithField("newAddr", addr). - Debugf("Supressing roam back to previous remote for %d seconds", RoamingSupressSeconds) + Debugf("Suppressing roam back to previous remote for %d seconds", RoamingSuppressSeconds) } return }