mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-09-22 09:06:53 +00:00
Add tests for TUN system stack (TCP/UDP)
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
co-authored by
RPRX
parent
05921d1755
commit
21c4fb34cf
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user