mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 16:51:18 -08:00
logpolicy/logpolicy: use noopPretendSuccessTransport if NoLogsNoSupport envknob is set
Signed-off-by: Paweł Bojanowski <[email protected]>
This commit is contained in:
1 parent
84659b1dc6
commit
b63f5d7e7d
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user