mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
12 lines
304 B
Go
12 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{}
|
|
}
|