Browse Source

rename config for NewACAutomatonDomainMatcher to hybrid

Shelikhoo 4 years ago
parent
commit
0043dd6685
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/router/config.go

+ 1 - 1
app/router/config.go

@@ -70,7 +70,7 @@ func (rr *RoutingRule) BuildCondition() (Condition, error) {
 
 
 	if len(rr.Domain) > 0 {
 	if len(rr.Domain) > 0 {
 		switch rr.DomainMatcher {
 		switch rr.DomainMatcher {
-		case "ac":
+		case "hybrid":
 			matcher, err := NewACAutomatonDomainMatcher(rr.Domain)
 			matcher, err := NewACAutomatonDomainMatcher(rr.Domain)
 			if err != nil {
 			if err != nil {
 				return nil, newError("failed to build domain condition with ACAutomatonDomainMatcher").Base(err)
 				return nil, newError("failed to build domain condition with ACAutomatonDomainMatcher").Base(err)