Remove log when no handshake message is sent (#452)
This commit is contained in:
parent
1bc6f5fe6c
commit
98c391396c
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
- name: End 2 end
|
- name: End 2 end
|
||||||
run: make e2e
|
run: make e2evv
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Build and test on ${{ matrix.os }}
|
name: Build and test on ${{ matrix.os }}
|
||||||
|
@ -77,4 +77,4 @@ jobs:
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
- name: End 2 end
|
- name: End 2 end
|
||||||
run: go test -tags=e2e_testing -count=1 ./e2e
|
run: make e2evv
|
||||||
|
|
|
@ -165,10 +165,13 @@ func (c *HandshakeManager) handleOutbound(vpnIP uint32, f EncWriter, lighthouseT
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
hostinfo.logger(c.l).WithField("udpAddrs", sentTo).
|
// Don't be too noisy or confusing if we fail to send a handshake - if we don't get through we'll eventually log a timeout
|
||||||
WithField("initiatorIndex", hostinfo.localIndexId).
|
if len(sentTo) > 0 {
|
||||||
WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
|
hostinfo.logger(c.l).WithField("udpAddrs", sentTo).
|
||||||
Info("Handshake message sent")
|
WithField("initiatorIndex", hostinfo.localIndexId).
|
||||||
|
WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
|
||||||
|
Info("Handshake message sent")
|
||||||
|
}
|
||||||
|
|
||||||
// Increment the counter to increase our delay, linear backoff
|
// Increment the counter to increase our delay, linear backoff
|
||||||
hostinfo.HandshakeCounter++
|
hostinfo.HandshakeCounter++
|
||||||
|
|
Loading…
Reference in New Issue