fix: fix typo

This commit is contained in:
Stavros
2026-07-18 16:47:53 +03:00
parent 286aad2e08
commit a79438d6ec
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -50,8 +50,8 @@ func (service *AccessControlsService) lookupStaticACLs(domain string) *model.App
service.log.App.Debug().Str("name", app).Msg("Found matching container by domain") service.log.App.Debug().Str("name", app).Msg("Found matching container by domain")
return &config return &config
} }
if !errors.Is(err, validators.ErrHostnameMismatch) || if !errors.Is(err, validators.ErrHostnameMismatch) &&
!errors.Is(err, validators.ErrPortMismatch) || !errors.Is(err, validators.ErrPortMismatch) &&
!errors.Is(err, validators.ErrSchemeMismatch) { !errors.Is(err, validators.ErrSchemeMismatch) {
service.log.App.Debug().Str("name", app).Err(err).Msg("Domain validation failed") service.log.App.Debug().Str("name", app).Err(err).Msg("Domain validation failed")
} }
+2 -2
View File
@@ -26,8 +26,8 @@ func SafeParseAppURL(str string) (string, error) {
} }
if u.Host == "" || if u.Host == "" ||
u.Scheme != "http" && (u.Scheme != "http" &&
u.Scheme != "https" { u.Scheme != "https") {
return "", fmt.Errorf("invalid url, must be in format https(s)://host") return "", fmt.Errorf("invalid url, must be in format https(s)://host")
} }