MCPcopy Index your code
hub / github.com/XTLS/Xray-core / stackGVisor

Struct stackGVisor

proxy/tun/stack_gvisor.go:35–42  ·  view source on GitHub ↗

stackGVisor is ip stack implemented by gVisor package

Source from the content-addressed store, hash-verified

33
34// stackGVisor is ip stack implemented by gVisor package
35type stackGVisor struct {
36 ctx context.Context
37 tun GVisorTun
38 idleTimeout time.Duration
39 handler *Handler
40 stack *stack.Stack
41 endpoint stack.LinkEndpoint
42}
43
44// GVisorTun implements a bridge to connect gVisor ip stack to tun interface
45type GVisorTun interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected