mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-10 20:57:32 +00:00
.bencher
.github
appc
atomicfile
chirp
client
clientupdate
cmd
control
derp
disco
docs
doctor
drive
envknob
feature
gokrazy
health
hostinfo
internal
ipn
jsondb
k8s-operator
kube
licenses
log
logpolicy
logtail
maths
metrics
net
art
bakedroots
captivedetection
connectproxy
connstats
dns
dnscache
dnsfallback
flowtrack
ipset
ktimeout
memnet
netaddr
netcheck
neterror
netkernelconf
netknob
netmon
netns
netstat
netutil
netx
packet
ping
portmapper
proxymux
routetable
socks5
sockstats
speedtest
stun
stunserver
tcpinfo
tlsdial
tsaddr
tsdial
tshttpproxy
mksyscall.go
tshttpproxy.go
tshttpproxy_linux.go
tshttpproxy_synology.go
tshttpproxy_synology_test.go
tshttpproxy_test.go
tshttpproxy_windows.go
zsyscall_windows.go
tstun
udprelay
wsconn
omit
packages
paths
portlist
posture
prober
proxymap
release
safesocket
safeweb
scripts
sessionrecording
smallzstd
ssh
syncs
tailcfg
tempfork
tka
tool
tsconsensus
tsconst
tsd
tsnet
tstest
tstime
tsweb
types
util
version
wf
wgengine
words
.gitattributes
.gitignore
.golangci.yml
ALPINE.txt
AUTHORS
CODEOWNERS
CODE_OF_CONDUCT.md
Dockerfile
Dockerfile.base
LICENSE
Makefile
PATENTS
README.md
SECURITY.md
VERSION.txt
api.md
assert_ts_toolchain_match.go
build_dist.sh
build_docker.sh
flake.lock
flake.nix
go.mod
go.mod.sri
go.sum
go.toolchain.branch
go.toolchain.rev
gomod_test.go
header.txt
license_test.go
pkgdoc_test.go
pull-toolchain.sh
shell.nix
staticcheck.conf
update-flake.sh
version-embed.go
version_tailscale_test.go
version_test.go

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>
25 lines
416 B
Go
25 lines
416 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build linux
|
|
|
|
package tshttpproxy
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
|
|
"tailscale.com/version/distro"
|
|
)
|
|
|
|
func init() {
|
|
sysProxyFromEnv = linuxSysProxyFromEnv
|
|
}
|
|
|
|
func linuxSysProxyFromEnv(req *http.Request) (*url.URL, error) {
|
|
if distro.Get() == distro.Synology {
|
|
return synologyProxyFromConfigCached(req)
|
|
}
|
|
return nil, nil
|
|
}
|