Skip to content

Commit

Permalink
fixup! fix(config): protect proxy if it contains basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 14, 2024
1 parent 709cbea commit 71f070e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ const isProtected = (k) => {
}

// Redacted fields are public unless they contain redacted info
const isRedacted = (v) => redact(v) !== v

const isPrivate = (k, v) => isProtected(k) || isRedacted(v)
const isPrivate = (k, v) => isProtected(k) || redact(v) !== v

const displayVar = (k, v) =>
`${k} = ${isProtected(k, v) ? '(protected)' : JSON.stringify(redact(v))}`
Expand Down

0 comments on commit 71f070e

Please sign in to comment.