mirror of
https://github.com/slackhq/nebula.git
synced 2025-12-05 18:20:48 -08:00
fix integer wraparound in the calculation of handshake timeouts on 32-bit targets (#1185)
Fixes: #1169
This commit is contained in:
parent
8a6a0f0636
commit
248cf194cd
2 changed files with 5 additions and 5 deletions
2
main.go
2
main.go
|
|
@ -215,7 +215,7 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg
|
|||
|
||||
handshakeConfig := HandshakeConfig{
|
||||
tryInterval: c.GetDuration("handshakes.try_interval", DefaultHandshakeTryInterval),
|
||||
retries: c.GetInt("handshakes.retries", DefaultHandshakeRetries),
|
||||
retries: int64(c.GetInt("handshakes.retries", DefaultHandshakeRetries)),
|
||||
triggerBuffer: c.GetInt("handshakes.trigger_buffer", DefaultHandshakeTriggerBuffer),
|
||||
useRelays: useRelays,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue