Skip to content

Commit da0c70f

Browse files
committed
Remove unused code
1 parent b55d86f commit da0c70f

File tree

1 file changed

+0
-13
lines changed
  • client/firewall/uspfilter

1 file changed

+0
-13
lines changed

client/firewall/uspfilter/nat.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,6 @@ func (t *portNATTracker) shouldApplyNAT(srcIP, dstIP netip.Addr, dstPort uint16)
206206
return true
207207
}
208208

209-
// cleanupConnection removes a NAT connection.
210-
func (t *portNATTracker) cleanupConnection(srcIP, dstIP netip.Addr, srcPort uint16) {
211-
t.mutex.Lock()
212-
defer t.mutex.Unlock()
213-
214-
for key := range t.connections {
215-
if key.SrcIP == srcIP && key.DstIP == dstIP && key.SrcPort == srcPort {
216-
delete(t.connections, key)
217-
return
218-
}
219-
}
220-
}
221-
222209
// newBiDNATMap creates a new bidirectional DNAT mapping structure.
223210
func newBiDNATMap() *biDNATMap {
224211
return &biDNATMap{

0 commit comments

Comments
 (0)