mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
support x-properties
This commit is contained in:
parent
ef1863f810
commit
52d5e2f36d
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
package route
|
package route
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/yusing/go-proxy/internal/docker"
|
"github.com/yusing/go-proxy/internal/docker"
|
||||||
E "github.com/yusing/go-proxy/internal/error"
|
E "github.com/yusing/go-proxy/internal/error"
|
||||||
url "github.com/yusing/go-proxy/internal/net/types"
|
url "github.com/yusing/go-proxy/internal/net/types"
|
||||||
|
@ -84,6 +86,9 @@ func FromEntries(entries RawEntries) (Routes, E.Error) {
|
||||||
routes := NewRoutes()
|
routes := NewRoutes()
|
||||||
entries.RangeAllParallel(func(alias string, en *RawEntry) {
|
entries.RangeAllParallel(func(alias string, en *RawEntry) {
|
||||||
en.Alias = alias
|
en.Alias = alias
|
||||||
|
if strings.HasPrefix(alias, "x-") { // x properties
|
||||||
|
return
|
||||||
|
}
|
||||||
r, err := NewRoute(en)
|
r, err := NewRoute(en)
|
||||||
switch {
|
switch {
|
||||||
case err != nil:
|
case err != nil:
|
||||||
|
|
Loading…
Add table
Reference in a new issue