Merge branch 'main' into android-dns-routes

This commit is contained in:
Viktor Liu
2025-06-17 15:12:05 +02:00
12 changed files with 887 additions and 142 deletions
-2
View File
@@ -745,9 +745,7 @@ func (m *Manager) dropFilter(packetData []byte, size int) bool {
return false
}
// Step 1: Check connection tracking FIRST (with original addresses)
if m.stateful && m.isValidTrackedConnection(d, srcIP, dstIP, size) {
// Step 2: Apply reverse DNAT for established connections
translated := m.translateInboundReverse(packetData, d)
if translated {
// Re-decode after translation