mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-04 07:32:19 -08:00
Change-Id: I8185f5bdfe080e33910a8224de66c97f10e2ed40 Signed-off-by: Brad Fitzpatrick <[email protected]>
18 lines
447 B
Go
18 lines
447 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package tstun
|
|
|
|
import (
|
|
"runtime"
|
|
)
|
|
|
|
// SetLinkFeaturesPostUp configures link features on t based on select TS_TUN_
|
|
// environment variables and OS feature tests. Callers should ensure t is
|
|
// up prior to calling, otherwise OS feature tests may be inconclusive.
|
|
func (t *Wrapper) SetLinkFeaturesPostUp() {
|
|
if t.isTAP || runtime.GOOS == "android" {
|
|
return
|
|
}
|
|
}
|