Skip to content
Snippets Groups Projects
Commit 95e863e5 authored by william feng's avatar william feng
Browse files

add default priority 0 for condition url which neither application nor service level router

parent 740be76f
No related branches found
No related tags found
No related merge requests found
......@@ -120,8 +120,10 @@ func NewConditionRouter(url *common.URL) (*ConditionRouter, error) {
var defaultPriority int64
if url.GetParam(constant.APPLICATION_KEY, "") != "" {
defaultPriority = 150
} else {
} else if url.GetParam(constant.INTERFACE_KEY, "") != "" {
defaultPriority = 140
} else {
defaultPriority = 0
}
router.priority = url.GetParamInt(constant.RouterPriority, defaultPriority)
router.Force = url.GetParamBool(constant.RouterForce, false)
......
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