Skip to content

Commit

Permalink
fully anchor all path regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
timflyio committed Jul 22, 2024
1 parent 17dc7aa commit c445404
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dockerproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ const (
)

var allowedPaths = []*regexp.Regexp{
regexp.MustCompile("^/flyio/.*"),
regexp.MustCompile("^/grpc"),
regexp.MustCompile("^/_ping"),
regexp.MustCompile("^(/v[0-9.]*)?/info"),
regexp.MustCompile("^(/v[0-9.]*)?/images/.*"),
regexp.MustCompile("^/flyio/.*$"),
regexp.MustCompile("^/grpc$"),
regexp.MustCompile("^/_ping$"),
regexp.MustCompile("^(/v[0-9.]*)?/info$"),
regexp.MustCompile("^(/v[0-9.]*)?/images/.*$"),
}

func init() {
Expand Down

0 comments on commit c445404

Please sign in to comment.