mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-09-24 10:00:28 +00:00
Implement lean "system" TCP/IP stack backend for TUN inbound
Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
co-authored by
RPRX
parent
d562d8947d
commit
05921d1755
@@ -42,8 +42,8 @@ type stackGVisor struct {
|
||||
endpoint stack.LinkEndpoint
|
||||
}
|
||||
|
||||
// NewStack builds new ip stack (using gVisor)
|
||||
func NewStack(ctx context.Context, options StackOptions, handler *Handler) (Stack, error) {
|
||||
// newGVisorStack builds new ip stack (using gVisor)
|
||||
func newGVisorStack(ctx context.Context, options StackOptions, handler *Handler) (Stack, error) {
|
||||
gStack := &stackGVisor{
|
||||
ctx: ctx,
|
||||
tun: options.Tun,
|
||||
|
||||
Reference in New Issue
Block a user