This makes sure that the log target override is respected even if a
custom HTTP client is passed to logpolicy.
Updates tailscale/maple#29
Signed-off-by: Anton Tolchanov <anton@tailscale.com>
pull/15619/head
Anton Tolchanov8 months agocommitted byAnton Tolchanov
opts.Logf("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.")
conf.BaseURL=val
u,_:=url.Parse(val)
logHost=u.Host
}
ifconf.HTTPC==nil{
logHost:=logtail.DefaultHost
ifval:=getLogTarget();val!=""{
opts.Logf("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.")