From 0304fc8feab567ac94234da1eebe018e844eb9a1 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 29 May 2020 20:44:53 -0600 Subject: [PATCH] Fix append to policy name, shouldn't be rule name --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 23cf76c..8915d15 100644 --- a/config.go +++ b/config.go @@ -51,10 +51,10 @@ func config(redirects []Redirect) error { // Iterate over values in the policy map and output the policy configuration fmt.Println("config waf url-rewrite url-rewrite-policy") for policyName, policyRules := range redirectPolicies { - fmt.Printf("edit \"%s\"\n", policyName) + fmt.Printf("edit \"%s-redirects\"\n", policyName) for _, ruleName := range policyRules { fmt.Println("edit 0") - fmt.Printf("set url-rewrite-rule-name %s-redirects\n", ruleName) + fmt.Printf("set url-rewrite-rule-name %s\n", ruleName) fmt.Println("next") fmt.Println("end") }