File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ func TestBasicAuthWithFakepassword(t *testing.T) {
132
132
// TestByPassBasicAuthVuln tests for CVE-2022-46146.
133
133
func TestByPassBasicAuthVuln (t * testing.T ) {
134
134
server := & http.Server {
135
+ Addr : port ,
135
136
Handler : http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
136
137
w .Write ([]byte ("Hello World!" ))
137
138
}),
@@ -146,12 +147,7 @@ func TestByPassBasicAuthVuln(t *testing.T) {
146
147
})
147
148
148
149
go func () {
149
- flags := FlagConfig {
150
- WebListenAddresses : & ([]string {port }),
151
- WebSystemdSocket : OfBool (false ),
152
- WebConfigFile : OfString ("testdata/web_config_users_noTLS.good.yml" ),
153
- }
154
- ListenAndServe (server , & flags , testlogger )
150
+ ListenAndServe (server , "testdata/web_config_users_noTLS.good.yml" , testlogger )
155
151
close (done )
156
152
}()
157
153
You can’t perform that action at this time.
0 commit comments