Skip to content

Commit

Permalink
Reset icmp tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Dec 20, 2024
1 parent 2a5ef98 commit f0c8c90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion client/firewall/uspfilter/allow_netbird.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ func (m *Manager) Reset(stateManager *statemanager.Manager) error {

if m.udpTracker != nil {
m.udpTracker.Close()
m.udpTracker = conntrack.NewUDPTracker(udpTimeout)
m.udpTracker = conntrack.NewUDPTracker(conntrack.DefaultUDPTimeout)
}

if m.icmpTracker != nil {
m.icmpTracker.Close()
m.icmpTracker = conntrack.NewICMPTracker(conntrack.DefaultICMPTimeout)
}

if m.nativeFirewall != nil {
Expand Down
7 changes: 6 additions & 1 deletion client/firewall/uspfilter/allow_netbird_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ func (m *Manager) Reset(*statemanager.Manager) error {

if m.udpTracker != nil {
m.udpTracker.Close()
m.udpTracker = conntrack.NewUDPTracker(udpTimeout)
m.udpTracker = conntrack.NewUDPTracker(conntrack.DefaultUDPTimeout)
}

if m.icmpTracker != nil {
m.icmpTracker.Close()
m.icmpTracker = conntrack.NewICMPTracker(conntrack.DefaultICMPTimeout)
}

if !isWindowsFirewallReachable() {
Expand Down
1 change: 1 addition & 0 deletions client/firewall/uspfilter/conntrack/tcp.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package conntrack

0 comments on commit f0c8c90

Please sign in to comment.