cmd/tailscale: add tun Wrapper and call Start() (#140)

Fixes https://github.com/tailscale/corp/issues/15388

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
release-branch/1.52
Denton Gentry 1 year ago committed by GitHub
parent 6684b3059c
commit a965ae0038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -159,6 +159,9 @@ func newBackend(dataDir string, jvm *jni.JVM, appCtx jni.Object, store *stateSto
ns.ProcessLocalIPs = false // let Android kernel handle it; VpnBuilder sets this up ns.ProcessLocalIPs = false // let Android kernel handle it; VpnBuilder sets this up
ns.ProcessSubnets = true // for Android-being-an-exit-node support ns.ProcessSubnets = true // for Android-being-an-exit-node support
sys.NetstackRouter.Set(true) sys.NetstackRouter.Set(true)
if w, ok := sys.Tun.GetOK(); ok {
w.Start()
}
lb, err := ipnlocal.NewLocalBackend(logf, logID.Public(), sys, 0) lb, err := ipnlocal.NewLocalBackend(logf, logID.Public(), sys, 0)
if err != nil { if err != nil {
engine.Close() engine.Close()

Loading…
Cancel
Save