fix invalid fortiOS syntax in output
This commit is contained in:
		| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user