mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-19 16:31:15 +00:00
fix: fix typo
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user