Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
fortuna committed Oct 29, 2024
1 parent 67a190c commit 6803dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/configurl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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)
Expand Down

0 comments on commit 6803dde

Please sign in to comment.