Skip to content

Commit e041172

Browse files
committed
chore: fix typos
HandshakeInitationRate -> HandshakeInitiationRate mis-parse -> miss-parse Signed-off-by: AsciiMoth <ascii@moth.contact>
1 parent 6cf0c4d commit e041172

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

conn/controlfns_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func kernelVersion() (major, minor int) {
2929
value = (value * 10) + int(c-'0')
3030
} else {
3131
// Note that we're assuming N.N.N here.
32-
// If we see anything else, we are likely to mis-parse it.
32+
// If we see anything else, we are likely to miss-parse it.
3333
values[vi] = value
3434
vi++
3535
if vi >= len(values) {

device/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
RejectAfterTime = time.Second * 180
2323
KeepaliveTimeout = time.Second * 10
2424
CookieRefreshTime = time.Second * 120
25-
HandshakeInitationRate = time.Second / 50
25+
HandshakeInitiationRate = time.Second / 50
2626
PaddingMultiple = 16
2727
)
2828

device/noise-protocol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ func (device *Device) ConsumeMessageInitiation(msg *MessageInitiation) *Peer {
405405
// protect against replay & flood
406406

407407
replay := !timestamp.After(handshake.lastTimestamp)
408-
flood := time.Since(handshake.lastInitiationConsumption) <= HandshakeInitationRate
408+
flood := time.Since(handshake.lastInitiationConsumption) <= HandshakeInitiationRate
409409
handshake.mutex.RUnlock()
410410
if replay {
411411
device.log.Verbosef("%v - ConsumeMessageInitiation: handshake replay @ %v", peer, timestamp)

0 commit comments

Comments
 (0)