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 -}