Skip to content
Snippets Groups Projects
Commit 24b4d6e2 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub
Browse files

Merge pull request #629 from willson-chen/add_anyhost_key_judgment

Add: anyhost key judgment
parents f43d5db8 af4566bb
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ const (
const (
ANY_VALUE = "*"
ANYHOST_KEY = "anyhost"
ANYHOST_VALUE = "0.0.0.0"
REMOVE_VALUE_PREFIX = "-"
)
......
......@@ -100,7 +100,12 @@ func ToConfigurators(urls []*common.URL, f func(url *common.URL) config_center.C
configurators = []config_center.Configurator{}
break
}
//TODO:anyhost_key judage
override := url.GetParams()
delete(override, constant.ANYHOST_KEY)
if len(override) == 0 {
continue
}
configurators = append(configurators, f(url))
}
return configurators
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment