David Anderson
70a2929a12
version: make all exported funcs compile-time constant or lazy
...
Signed-off-by: David Anderson <danderson@tailscale.com>
2023-02-11 07:29:55 +00:00
Will Norris
71029cea2d
all: update copyright and license headers
...
This updates all source files to use a new standard header for copyright
and license declaration. Notably, copyright no longer includes a date,
and we now use the standard SPDX-License-Identifier header.
This commit was done almost entirely mechanically with perl, and then
some minimal manual fixes.
Updates #6865
Signed-off-by: Will Norris <will@tailscale.com>
2023-01-27 15:36:29 -08:00
Brad Fitzpatrick
b9dd3fa534
paths, version/distro: detect Synology DSM version better, use for socket path
...
Resolves a TODO in the code noted while discussing QNAP defaults.
Tested on DSM6 and DSM7.
Change-Id: Icce03ff41fafd7b3a358cfee16f2ed13d5cc3c5d
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-12-02 09:54:08 -08:00
Maisem Ali
a9f6cd41fd
all: use syncs.AtomicValue
...
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2022-08-04 11:52:16 -07:00
Brad Fitzpatrick
469c30c33b
ipn/localapi: define a cert dir for Synology DSM6
...
Fixes #4060
Change-Id: I5f145d4f56f6edb14825268e858d419c55918673
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-07-18 09:51:24 -07:00
Denton Gentry
c6ac82e3a6
hostinfo,distro: Identify Western Digital MyCloud devices.
...
root@WDMyCloud HD_a2 # ./tailscale debug hostinfo
{
"IPNVersion": "1.25.0-dev20220605-t7fea52e02",
"OS": "linux",
"OSVersion": "5.22.113",
"Desktop": false,
"DeviceModel": "WD My Cloud Gen2: Marvell Armada 375",
"Hostname": "WDMyCloud",
"GoArch": "arm"
}
Updates https://github.com/tailscale/tailscale/issues/4622
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-06-05 08:22:42 -07:00
Brad Fitzpatrick
58a6c9b2b8
version, hostinfo: recognize gokrazy as a distro
...
Now:
/tmp/breakglass3929186798 # /user/tailscale debug hostinfo
{
"IPNVersion": "1.23.0-date.20220107",
"OS": "linux",
"OSVersion": "Gokrazy; kernel=5.16.11",
"DeviceModel": "Raspberry Pi 4 Model B Rev 1.2",
"Hostname": "gokrazy",
"GoArch": "arm64"
}
Also, cache the distro lookup. It doesn't change while the program is
running:
name old time/op new time/op delta
Get-6 5.21µs ± 5% 0.00µs ± 3% -99.91% (p=0.008 n=5+5)
name old alloc/op new alloc/op delta
Get-6 792B ± 0% 0B -100.00% (p=0.008 n=5+5)
name old allocs/op new allocs/op delta
Get-6 8.00 ± 0% 0.00 -100.00% (p=0.008 n=5+5)
Updates #1866
Change-Id: Ifb9a63b94287010d3f4c8bfeb6b78119e8a9b203
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-03-01 19:37:20 -08:00
root
e34ba3223c
version/distro: report TrueNAS Scale as "truenas"
...
TrueNAS Scale is based on Debian Linux
Signed-off-by: Todd Neal <todd@tneal.org>
2021-12-07 21:04:58 -08:00
Denton Gentry
1d1efbb599
hostinfo: add FreeBSD support.
...
Add specific handling for common appliances based on FreeBSD:
- pfSense
HostInfo: {"OS":"freebsd","OSVersion":"pfSense 2.5.2-RELEASE; version=12.2-STABLE"
- OPNsense
HostInfo: {"OS":"freebsd","OSVersion":"OPNsense 21.7.1 (amd64/OpenSSL); version=12.1-RELEASE-p19-HBSD"
- TrueNAS
HostInfo: {"OS":"freebsd","OSVersion":"TrueNAS-12.0-U5.1 (6c639bd48a); version=12.2-RELEASE-p9"
- FreeNAS
HostInfo: {"OS":"freebsd","OSVersion":"FreeNAS-11.3-U5 (2e4ded5a0a); version=11.3-RELEASE-p14",
- regular FreeBSD
HostInfo: {"OS":"freebsd","OSVersion":"FreeBSD; version=12.2-RELEASE"
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-09-06 23:12:09 -07:00
Maisem Ali
f944614c5c
cmd/tailscale/web: add support for QNAP
...
Signed-off-by: Maisem Ali <maisem@tailscale.com>
2021-06-10 19:06:05 +05:00
David Crawshaw
4ed111281b
version/distro: look for absolute synology path
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2021-04-01 17:21:36 -07:00
Brad Fitzpatrick
ef15096a7d
control/controlclient, version/distro: detect NixOS explicitly
...
The fallthrough happened to work in controlclient already due to the
/etc/os-release PRETTY_NAME default, but make it explicit so it
doesn't look like an accident.
Also add it to version/distro, even though nothing needs it yet.
2020-12-21 21:03:04 -08:00
Brad Fitzpatrick
5d8b88be88
control/controlclient, version/distro, wgengine: recognize OpenWrt
...
And help out with missing packages.
Thanks to @willangley for tips.
Updates #724
2020-09-22 10:28:40 -07:00
Brad Fitzpatrick
a084c44afc
wgengine, wgengine/router, cmd/tailscale: force netfilter mode off on Synology
...
For now. Get it working again so it's not stuck on 0.98.
Subnet relay can come later.
Updates #451
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-09-11 13:12:40 -07:00