fix invalid fortiOS syntax in output

This commit is contained in:
Steven Polley 2020-05-29 20:47:34 -06:00
parent 0304fc8fea
commit 0b58316916

View File

@ -52,12 +52,13 @@ func config(redirects []Redirect) error {
fmt.Println("config waf url-rewrite url-rewrite-policy")
for policyName, policyRules := range redirectPolicies {
fmt.Printf("edit \"%s-redirects\"\n", policyName)
fmt.Println("config rule")
for _, ruleName := range policyRules {
fmt.Println("edit 0")
fmt.Printf("set url-rewrite-rule-name %s\n", ruleName)
fmt.Println("next")
fmt.Println("end")
}
fmt.Println("end")
fmt.Println("next")
}
fmt.Println("end")