Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanejohnson committed Sep 9, 2020
1 parent 371346a commit bbeb054
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions route/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (t Table) matchingHosts(req *http.Request, globCache *GlobCache) (hosts []s
}
}

hosts = sortHostsReverHostPort(hosts)
hosts = sortHostsReverseHostPort(hosts)
return
}

Expand All @@ -356,11 +356,11 @@ func (t Table) matchingHostNoGlob(req *http.Request) (hosts []string) {
hosts = append(hosts, strings.ToLower(pattern))
}
}
hosts = sortHostsReverHostPort(hosts)
hosts = sortHostsReverseHostPort(hosts)
return
}

func sortHostsReverHostPort(hosts []string) []string {
func sortHostsReverseHostPort(hosts []string) []string {
// Issue 506: multiple glob patterns hosts in wrong order
//
// DNS names have their most specific part at the front. In order to sort
Expand Down

0 comments on commit bbeb054

Please sign in to comment.