Skip to content

Commit

Permalink
Add check the dot in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Apr 24, 2024
1 parent 28d84e8 commit e8bb0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func ParseOriginPathInfo(path string) (*PathInfo, bool) {
}
host := path[:i]
tail := path[i+1:]
if !isDomainName(host) {
if !isDomainName(host) || !strings.Contains(host, ".") {
return nil, false
}

Expand Down

0 comments on commit e8bb0bd

Please sign in to comment.