mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-06-03 06:07:20 +02:00
Updated tag filtering
- Added automatic empty tag removal when creating new proxy rule
This commit is contained in:
parent
9b64278200
commit
693dba07b7
@ -313,6 +313,14 @@ func ReverseProxyHandleAddEndpoint(w http.ResponseWriter, r *http.Request) {
|
|||||||
tags[i] = strings.TrimSpace(tags[i])
|
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
|
var proxyEndpointCreated *dynamicproxy.ProxyEndpoint
|
||||||
if eptype == "host" {
|
if eptype == "host" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user