mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
logpolicy: shorten envvar name
Signed-off-by: Christine Dodrill <xe@tailscale.com>
This commit is contained in:
parent
8ec50db8ef
commit
a6a834b5fe
@ -388,7 +388,7 @@ func New(collection string) *Policy {
|
|||||||
HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)},
|
HTTPC: &http.Client{Transport: newLogtailTransport(logtail.DefaultHost)},
|
||||||
}
|
}
|
||||||
|
|
||||||
if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET_DO_NOT_SET_UNLESS_TOLD_TO"); ok {
|
if val, ok := os.LookupEnv("TAILSCALE_LOG_TARGET"); ok {
|
||||||
log.Println("You have enabled a non-default log target. Doing without being told to by Tailscale staff or your network administrator will make getting support difficult.")
|
log.Println("You have enabled a non-default log target. Doing without being told to by Tailscale staff or your network administrator will make getting support difficult.")
|
||||||
c.BaseURL = val
|
c.BaseURL = val
|
||||||
u, _ := url.Parse(val)
|
u, _ := url.Parse(val)
|
||||||
|
Loading…
Reference in New Issue
Block a user