diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-29 21:12:09 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-29 21:12:09 +0100 |
commit | 479a6f240e37aacc449e3718d3853fa04c598ef4 (patch) | |
tree | c2400b291d078d9d55c1c1998faa4ae8d061bab4 | |
parent | 471f7ff08e897a6b4f2779e10d28aeb0a5b9e0e4 (diff) |
Fixed typos
-rw-r--r-- | src/device.go | 1 | ||||
-rw-r--r-- | src/timers.go | 8 | ||||
-rw-r--r-- | src/tun_linux.go | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/device.go b/src/device.go index ecffd9e..a1ce802 100644 --- a/src/device.go +++ b/src/device.go @@ -136,6 +136,7 @@ func NewDevice(tun TUNDevice, logger *Logger) *Device { device.log = logger device.peers = make(map[NoisePublicKey]*Peer) device.tun.device = tun + device.tun.isUp.Set(false) device.indices.Init() device.ratelimiter.Init() diff --git a/src/timers.go b/src/timers.go index d372b0d..5848b2a 100644 --- a/src/timers.go +++ b/src/timers.go @@ -25,7 +25,7 @@ func (peer *Peer) KeepKeyFreshSending() { }
}
-/* Called when a new authenticated message has been recevied
+/* Called when a new authenticated message has been received
*
* NOTE: Not thread safe (called by sequential receiver)
*/
@@ -106,7 +106,7 @@ func (peer *Peer) TimerAnyAuthenticatedPacketTraversal() { }
}
-/* Called after succesfully completing a handshake.
+/* Called after successfully completing a handshake.
* i.e. after:
*
* - Valid handshake response
@@ -124,7 +124,7 @@ func (peer *Peer) TimerHandshakeComplete() { /* Event:
* An ephemeral key is generated
*
- * i.e after:
+ * i.e. after:
*
* CreateMessageInitiation
* CreateMessageResponse
@@ -231,7 +231,7 @@ func (peer *Peer) RoutineHandshakeInitiator() { logInfo := device.log.Info
logError := device.log.Error
logDebug := device.log.Debug
- logDebug.Println("Routine, handshake initator, started for", peer.String())
+ logDebug.Println("Routine, handshake initiator, started for", peer.String())
var temp [256]byte
diff --git a/src/tun_linux.go b/src/tun_linux.go index 81f1bbb..8a5d53b 100644 --- a/src/tun_linux.go +++ b/src/tun_linux.go @@ -62,7 +62,7 @@ func (tun *NativeTun) File() *os.File { } func (tun *NativeTun) RoutineHackListener() { - /* This is needed for the detection to work accross network namespaces + /* This is needed for the detection to work across network namespaces * If you are reading this and know a better method, please get in touch. */ fd := int(tun.fd.Fd()) |