From 4c4fba76092412f8c7ff1f397b07e44a24efc6a6 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 29 May 2020 21:59:47 -0600 Subject: [PATCH] terminate regular expression in match condition --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 59f02e8..b3d7618 100644 --- a/config.go +++ b/config.go @@ -43,7 +43,7 @@ func config(redirects []Redirect) error { fmt.Println("config match-condition") fmt.Println("edit 0") fmt.Println("set object http-url") - fmt.Printf("set reg-exp %s\n", sourceURL.Path) + fmt.Printf("set reg-exp %s$\n", sourceURL.Path) fmt.Println("set protocol-filter enable") fmt.Printf("set HTTP-protocol %s\n", sourceURL.Scheme) fmt.Println("next")