MCPcopy Index your code
hub / github.com/AdguardTeam/dnsproxy / matchesUserinfo

Function matchesUserinfo

proxy/serverhttps.go:283–287  ·  view source on GitHub ↗

matchesUserinfo returns false if user and pass don't match userinfo. userinfo must not be nil.

(userinfo *url.Userinfo, user, pass string)

Source from the content-addressed store, hash-verified

281// matchesUserinfo returns false if user and pass don't match userinfo.
282// userinfo must not be nil.
283func matchesUserinfo(userinfo *url.Userinfo, user, pass string) (ok bool) {
284 requiredPassword, _ := userinfo.Password()
285
286 return user == userinfo.Username() && pass == requiredPassword
287}
288
289// respondHTTPS writes a response to the DoH client. d must not be nil.
290func (p *Proxy) respondHTTPS(d *DNSContext) (err error) {

Callers 1

checkBasicAuthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…