api/resolver: add resolve options (#1756)
* api/resolver: Resolve options * router/registry: fix init bug * router/registry: fix wildcard query bug * web: fix registation domain bug * registry/etcd: pass domain in service metadata * api/resolver/subdomain: expose domain func * Update api/resolver/subdomain/subdomain.go Co-authored-by: Dominic Wong <domwongemail@googlemail.com> Co-authored-by: Dominic Wong <domwongemail@googlemail.com>
This commit is contained in:
@@ -674,6 +674,7 @@ func (r *router) Close() error {
|
||||
|
||||
// remove event chan
|
||||
r.eventChan = nil
|
||||
r.running = false
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@@ -150,7 +150,7 @@ func (t *table) List() ([]Route, error) {
|
||||
func isMatch(route Route, address, gateway, network, router string, strategy Strategy) bool {
|
||||
// matches the values provided
|
||||
match := func(a, b string) bool {
|
||||
if a == "*" || a == b {
|
||||
if a == "*" || b == "*" || a == b {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user