From 1a5e83be106e1c0e604d319bb8ee720dfc0e3708 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 27 Apr 2023 15:14:19 +0200 Subject: [PATCH] internal/config: Fix host rule --- internal/config/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/config/http.go b/internal/config/http.go index fe8f90d..c9055a1 100644 --- a/internal/config/http.go +++ b/internal/config/http.go @@ -152,9 +152,9 @@ func MakeHostRule(hosts ...string) string { } if first { - builder.WriteString("||Host(`") - } else { builder.WriteString("Host(`") + } else { + builder.WriteString("||Host(`") } // domain should be punycode!