From 2df2ec2ba9df642734653eb7fe33718caf6a8c3f Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 29 May 2020 20:36:51 -0600 Subject: [PATCH] fix invalid syntax in fortiOS output --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 9c48e8d..75c4936 100644 --- a/config.go +++ b/config.go @@ -30,7 +30,7 @@ func config(redirects []Redirect) error { } else { ruleName = redirect.sourceURL } - fmt.Println("set action redirect") + fmt.Sprintf("edit \"%s\"\n", ruleName) fmt.Printf("set location %s\n", redirect.destinationURL) fmt.Println("set action redirect") fmt.Println("config match-condition")