mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-09 00:23:58 +01:00
Fix typos found by https://github.com/crate-ci/typos (#735)
This commit is contained in:
parent
ec48298fe8
commit
12dbbd3dd3
@ -61,7 +61,7 @@ func (c *Control) Start() {
|
|||||||
|
|
||||||
// Stop signals nebula to shutdown, returns after the shutdown is complete
|
// Stop signals nebula to shutdown, returns after the shutdown is complete
|
||||||
func (c *Control) Stop() {
|
func (c *Control) Stop() {
|
||||||
// Stop the handshakeManager (and other serivces), to prevent new tunnels from
|
// Stop the handshakeManager (and other services), to prevent new tunnels from
|
||||||
// being created while we're shutting them all down.
|
// being created while we're shutting them all down.
|
||||||
c.cancel()
|
c.cancel()
|
||||||
|
|
||||||
|
|||||||
@ -147,7 +147,7 @@ func (c *HandshakeManager) handleOutbound(vpnIp iputil.VpnIp, f udp.EncWriter, l
|
|||||||
|
|
||||||
// Get a remotes object if we don't already have one.
|
// Get a remotes object if we don't already have one.
|
||||||
// This is mainly to protect us as this should never be the case
|
// This is mainly to protect us as this should never be the case
|
||||||
// NB ^ This comment doesn't jive. It's how the thing gets intiailized.
|
// NB ^ This comment doesn't jive. It's how the thing gets initialized.
|
||||||
// It's the common path. Should it update every time, in case a future LH query/queries give us more info?
|
// It's the common path. Should it update every time, in case a future LH query/queries give us more info?
|
||||||
if hostinfo.remotes == nil {
|
if hostinfo.remotes == nil {
|
||||||
hostinfo.remotes = c.lightHouse.QueryCache(vpnIp)
|
hostinfo.remotes = c.lightHouse.QueryCache(vpnIp)
|
||||||
|
|||||||
@ -93,7 +93,7 @@ func (f *Interface) readOutsidePackets(addr *udp.Addr, via interface{}, out []by
|
|||||||
hostinfo.logger(f.l).WithField("hostinfo", hostinfo.vpnIp).WithField("remoteIndex", h.RemoteIndex).Errorf("HostInfo missing remote index")
|
hostinfo.logger(f.l).WithField("hostinfo", hostinfo.vpnIp).WithField("remoteIndex", h.RemoteIndex).Errorf("HostInfo missing remote index")
|
||||||
// Delete my local index from the hostmap
|
// Delete my local index from the hostmap
|
||||||
f.hostMap.DeleteRelayIdx(h.RemoteIndex)
|
f.hostMap.DeleteRelayIdx(h.RemoteIndex)
|
||||||
// When the peer doesn't recieve any return traffic, its connection_manager will eventually clean up
|
// When the peer doesn't receive any return traffic, its connection_manager will eventually clean up
|
||||||
// the broken relay when it cleans up the associated HostInfo object.
|
// the broken relay when it cleans up the associated HostInfo object.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
2
ssh.go
2
ssh.go
@ -805,7 +805,7 @@ func sshPrintRelays(ifce *Interface, fs interface{}, a []string, w sshd.StringWr
|
|||||||
case TerminalType:
|
case TerminalType:
|
||||||
t = "terminal"
|
t = "terminal"
|
||||||
default:
|
default:
|
||||||
t = "unkown"
|
t = "unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
s := ""
|
s := ""
|
||||||
|
|||||||
2
stats.go
2
stats.go
@ -18,7 +18,7 @@ import (
|
|||||||
"github.com/slackhq/nebula/config"
|
"github.com/slackhq/nebula/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// startStats initializes stats from config. On success, if any futher work
|
// startStats initializes stats from config. On success, if any further work
|
||||||
// is needed to serve stats, it returns a func to handle that work. If no
|
// is needed to serve stats, it returns a func to handle that work. If no
|
||||||
// work is needed, it'll return nil. On failure, it returns nil, error.
|
// work is needed, it'll return nil. On failure, it returns nil, error.
|
||||||
func startStats(l *logrus.Logger, c *config.C, buildVersion string, configTest bool) (func(), error) {
|
func startStats(l *logrus.Logger, c *config.C, buildVersion string, configTest bool) (func(), error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user