Fix upstream creds in test
This commit is contained in:
parent
397bfdf7c1
commit
cd93f0ed51
1 changed files with 4 additions and 1 deletions
|
|
@ -212,13 +212,16 @@ func TestMain(m *testing.M) {
|
|||
},
|
||||
}
|
||||
|
||||
upstreamBuf := make([]byte, base64.StdEncoding.EncodedLen(9))
|
||||
base64.StdEncoding.Encode(upstreamBuf, []byte("upstreamtest:upstreampass"))
|
||||
|
||||
caddyHTTPForwardProxyAuth = caddyTestServer{
|
||||
addr: "127.0.69.73:6973",
|
||||
root: "./test/forwardproxy",
|
||||
proxyHandler: &Handler{
|
||||
PACPath: defaultPACPath,
|
||||
ACL: []ACLRule{{Subjects: []string{"all"}, Allow: true}},
|
||||
AuthCredentials: [][]byte{buf},
|
||||
AuthCredentials: [][]byte{upstreamBuf},
|
||||
AuthRequired: true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue