mirror of
https://github.com/tailscale/tailscale.git
synced 2025-09-21 21:51:21 +02:00
logpolicy/logpolicy: use noopPretendSuccessTransport if NoLogsNoSupport envknob is set
Signed-off-by: Paweł Bojanowski <pawel.bojanowski@loft.sh>
This commit is contained in:
parent
84659b1dc6
commit
b63f5d7e7d
@ -868,7 +868,7 @@ type TransportOptions struct {
|
||||
// New returns an HTTP Transport particularly suited to uploading logs
|
||||
// to the given host name. See [DialContext] for details on how it works.
|
||||
func (opts TransportOptions) New() http.RoundTripper {
|
||||
if testenv.InTest() {
|
||||
if testenv.InTest() || envknob.NoLogsNoSupport() {
|
||||
return noopPretendSuccessTransport{}
|
||||
}
|
||||
if opts.NetMon == nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user