Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions vpn/boxoptions_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ func baseInbounds() []O.Inbound {
}

tunOpts := &O.TunInboundOptions{
InterfaceName: "utun225",
Address: tunAddress,
AutoRoute: true,
StrictRoute: true,
EndpointIndependentNat: true, // needed for QUIC migration and hole-punching
Stack: "system",
InterfaceName: "utun225",
Address: tunAddress,
AutoRoute: true,
StrictRoute: true,
Stack: "system",
Comment thread
garmr-ulfr marked this conversation as resolved.
}
switch common.Platform {
case "android":
Expand All @@ -60,10 +59,12 @@ func baseInbounds() []O.Inbound {
slog.Warn("kernel version unknown, keeping default TUN stack")
} else if kernelBelow(kv, minAndroidSystemStackKernel) {
tunOpts.Stack = "gvisor"
tunOpts.EndpointIndependentNat = true
slog.Info("kernel below 5.10, using gvisor TUN stack", "kernel", kv)
}
case "ios":
tunOpts.Stack = ""
tunOpts.EndpointIndependentNat = true
case "linux":
tunOpts.AutoRedirect = true
}
Expand Down
Loading