Add tests for TUN system stack (TCP/UDP)

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-21 02:42:18 +00:00
committed by GitHub
co-authored by RPRX
parent 05921d1755
commit 21c4fb34cf
2 changed files with 452 additions and 1 deletions
+4 -1
View File
@@ -33,7 +33,10 @@ type stackSystem struct {
device GVisorDevice
mtu uint32
idleTimeout time.Duration
handler *Handler
// handler is stored as the narrower ConnectionHandler interface (which
// *Handler satisfies) rather than *Handler itself, so the stack can be
// exercised in tests with a lightweight fake, the same way stack_system_test.go does.
handler ConnectionHandler
udp *udpConnectionHandler