95307a3d by astaxie

miss filter *

1 parent a85d91b4
...@@ -15,6 +15,9 @@ func (mr *FilterRouter) ValidRouter(router string) bool { ...@@ -15,6 +15,9 @@ func (mr *FilterRouter) ValidRouter(router string) bool {
15 if mr.pattern == "" { 15 if mr.pattern == "" {
16 return true 16 return true
17 } 17 }
18 if mr.pattern == "*" {
19 return true
20 }
18 if router == mr.pattern { 21 if router == mr.pattern {
19 return true 22 return true
20 } 23 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!