From 6803ddede4f5e64ba2c09ab035cff08c816845da Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Tue, 29 Oct 2024 00:18:24 -0400 Subject: [PATCH] Fix name --- x/configurl/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/configurl/config.go b/x/configurl/config.go index 7e7aaa94..63e563cf 100644 --- a/x/configurl/config.go +++ b/x/configurl/config.go @@ -284,7 +284,7 @@ func SanitizeConfig(configStr string) (string, error) { return "", err } case "socks5": - part, err = sanitizeSocks5URL(&config.URL) + part, err = sanitizeSOCKS5URL(&config.URL) if err != nil { return "", err } @@ -304,7 +304,7 @@ func SanitizeConfig(configStr string) (string, error) { return sanitized, nil } -func sanitizeSocks5URL(u *url.URL) (string, error) { +func sanitizeSOCKS5URL(u *url.URL) (string, error) { const redactedPlaceholder = "REDACTED" if u.User != nil { u.User = url.User(redactedPlaceholder)