Fix SOCKS5 port forwarding for modified peer data packets (#2391)

Fixes SOCKS5/port-forward handling for peer data packets 
whose source endpoint was rewritten by the KCP or QUIC proxy path.

Keep SOCKS5 entry accounting consistent by centralizing insert/remove 
operations, decrementing only for actual removals, avoiding underflow, 
and resetting counts when entries are retained or cleared after IPv4 changes.
This commit is contained in:
KKRainbow
2026-06-29 10:24:57 +08:00
committed by GitHub
parent 46f1b57367
commit 15e5d89f70
4 changed files with 845 additions and 79 deletions
+1 -1
View File
@@ -35,6 +35,7 @@ jobs:
with:
gui: false
pnpm: false
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
@@ -243,4 +244,3 @@ jobs:
ohpm publish easytier-release.har
fi
curl --header "Content-Type: application/json" --request POST --data "{}" ${{ secrets.CODEARTS_WEBHOOKS }}