Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
11 lines
254 B
Go
11 lines
254 B
Go
package config
|
|
|
|
import "testing"
|
|
|
|
func TestLoadTrustedProxies(t *testing.T) {
|
|
t.Setenv("OPENGOODS_TRUSTED_PROXIES", "10.0.0.0/8")
|
|
if got := Load().TrustedProxies; got != "10.0.0.0/8" {
|
|
t.Fatalf("TrustedProxies = %q, want %q", got, "10.0.0.0/8")
|
|
}
|
|
}
|