Pulse/internal/api/export_test.go

11 lines
304 B
Go

package api
import "sync"
// ResetTrustedProxyConfigForTests resets the trusted proxy configuration.
// This must be called after setting PULSE_TRUSTED_PROXY_CIDRS env var.
func ResetTrustedProxyConfigForTests() {
trustedProxyCIDRs = nil
trustedProxyConfigErr = nil
trustedProxyOnce = sync.Once{}
}