fix invalid fortiOS syntax in output
This commit is contained in:
parent
0304fc8fea
commit
0b58316916
@ -52,12 +52,13 @@ func config(redirects []Redirect) error {
|
|||||||
fmt.Println("config waf url-rewrite url-rewrite-policy")
|
fmt.Println("config waf url-rewrite url-rewrite-policy")
|
||||||
for policyName, policyRules := range redirectPolicies {
|
for policyName, policyRules := range redirectPolicies {
|
||||||
fmt.Printf("edit \"%s-redirects\"\n", policyName)
|
fmt.Printf("edit \"%s-redirects\"\n", policyName)
|
||||||
|
fmt.Println("config rule")
|
||||||
for _, ruleName := range policyRules {
|
for _, ruleName := range policyRules {
|
||||||
fmt.Println("edit 0")
|
fmt.Println("edit 0")
|
||||||
fmt.Printf("set url-rewrite-rule-name %s\n", ruleName)
|
fmt.Printf("set url-rewrite-rule-name %s\n", ruleName)
|
||||||
fmt.Println("next")
|
fmt.Println("next")
|
||||||
fmt.Println("end")
|
|
||||||
}
|
}
|
||||||
|
fmt.Println("end")
|
||||||
fmt.Println("next")
|
fmt.Println("next")
|
||||||
}
|
}
|
||||||
fmt.Println("end")
|
fmt.Println("end")
|
||||||
|
Loading…
Reference in New Issue
Block a user