Skip to content

Commit

Permalink
Updated tag filtering
Browse files Browse the repository at this point in the history
- Added automatic empty tag removal when creating new proxy rule
  • Loading branch information
tobychui committed Feb 8, 2025
1 parent 9b64278 commit 693dba0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
tags[i] = strings.TrimSpace(tags[i])
}
}
// Remove empty tags
filteredTags := []string{}
for _, tag := range tags {
if tag != "" {
filteredTags = append(filteredTags, tag)
}
}
tags = filteredTags

var proxyEndpointCreated *dynamicproxy.ProxyEndpoint
if eptype == "host" {
Expand Down

0 comments on commit 693dba0

Please sign in to comment.