mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 07:56:52 +01:00
firewall: Keep conntrack entries per peer and recheck them when a peer reconnects
This commit is contained in:
1 parent
bbc49669b7
commit
a0045aef09
6 files changed
+202
-37
No files matched your search
@@ -23,7 +23,7 @@ func newFixedTicker(t *testing.T, l *slog.Logger, cacheLen int) *ConntrackCacheT
|
||||
cache: make(ConntrackCache, cacheLen),
|
||||
}
|
||||
for i := range cacheLen {
|
||||
c.cache[Packet{LocalPort: uint16(i) + 1}] = struct{}{}
|
||||
c.cache[ConntrackKey{Packet: Packet{LocalPort: uint16(i) + 1}}] = struct{}{}
|
||||
}
|
||||
c.cacheTick.Store(1) // cacheV starts at 0, so Get() takes the reset path
|
||||
return c
|
||||
|
||||
Reference in new issue
Block a user