mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-16 11:19:11 +00:00
11 lines
304 B
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{}
|
|
}
|