Skip to content

Commit

Permalink
update helper func name
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Mar 13, 2024
1 parent 2467031 commit d5fd40d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions path_oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ func (b *jwtAuthBackend) verifyOIDCRequest(stateID string) *oidcRequest {
return nil
}

func isLoopbackAddress(hostname string) bool {
func isLocalAddr(hostname string) bool {
ip := net.ParseIP(hostname)
if ip != nil {
return ip.IsLoopback()
Expand All @@ -558,7 +558,7 @@ func validRedirect(uri string, allowed []string) bool {
}

// if uri isn't a loopback, just string search the allowed list
if !isLoopbackAddress(inputURI.Hostname()) {
if !isLocalAddr(inputURI.Hostname()) {
return strutil.StrListContainsCaseInsensitive(allowed, uri)
}

Expand Down

0 comments on commit d5fd40d

Please sign in to comment.