mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-07 05:21:25 +02:00
So wgengine/router is just the docs + entrypoint + types, and then underscore importing wgengine/router/osrouter registers the constructors with the wgengine/router package. Then tsnet can not pull those in. Updates #17313 Change-Id: If313226f6987d709ea9193c8f16a909326ceefe7 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
14 lines
514 B
Go
14 lines
514 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Code generated by gen.go; DO NOT EDIT.
|
|
|
|
//go:build !ts_omit_osrouter
|
|
|
|
package buildfeatures
|
|
|
|
// HasOSRouter is whether the binary was built with support for modular feature "Configure the operating system's network stack, IPs, and routing tables".
|
|
// Specifically, it's whether the binary was NOT built with the "ts_omit_osrouter" build tag.
|
|
// It's a const so it can be used for dead code elimination.
|
|
const HasOSRouter = true
|