We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f36fd35 commit d6277e3Copy full SHA for d6277e3
main.go
@@ -103,7 +103,7 @@ func HelloHandler(w http.ResponseWriter, r *http.Request) {
103
w.WriteHeader(http.StatusUnauthorized)
104
return
105
}
106
- if u != dnslogserver.Basicauth.Username && p != dnslogserver.Basicauth.Password {
+ if u != dnslogserver.Basicauth.Username || p != dnslogserver.Basicauth.Password {
107
log.Println("Basic auth Failed", u)
108
w.Header().Set("WWW-Authenticate", `Basic realm="My REALM"`)
109
0 commit comments