From 4a549cfea73783607be242ecb1d8297ad36df988 Mon Sep 17 00:00:00 2001 From: afranco Date: Sun, 28 Sep 2025 10:17:57 +0100 Subject: [PATCH] fix(output): fix wrong name of file --- internal/qol/utils.go | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/internal/qol/utils.go b/internal/qol/utils.go index 133c178..82ff8d0 100644 --- a/internal/qol/utils.go +++ b/internal/qol/utils.go @@ -10,8 +10,7 @@ import ( func GenerateOutputPaths(outputDir, upstream string, dnssec, keepAlive bool) (csvPath, pcapPath string) { proto := DetectProtocol(upstream) - serverName := ExtractServerName(upstream) - cleanServer := cleanServerName(serverName) + cleanServer := cleanServerName(upstream) // Create date-based subdirectory date := time.Now().Format("2006-01-02") @@ -92,16 +91,3 @@ func DetectProtocol(upstream string) string { } return "do53" } - -func ExtractServerName(upstream string) string { - if strings.Contains(upstream, "://") { - u, err := url.Parse(upstream) - if err == nil { - if u.Scheme == "https" && u.Path != "" && u.Path != "/" { - return u.Host + u.Path - } - return u.Host - } - } - return upstream -}