Compare commits

...

2 Commits

Author SHA1 Message Date
Andrea Spacca
c5664b433d better logic 2023-06-06 19:35:45 +09:00
Andrea Spacca
fc6f897eaa fix basic auth 2023-06-06 19:30:32 +09:00

View File

@@ -1326,7 +1326,7 @@ func ipFilterHandler(h http.Handler, ipFilterOptions *IPFilterOptions) http.Hand
func (s *Server) basicAuthHandler(h http.Handler) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
if s.authUser == "" || s.authPass == "" || s.authHtpasswd == "" {
if s.authUser == "" && s.authPass == "" && s.authHtpasswd == "" {
h.ServeHTTP(w, r)
return
}