Skip to content

Commit

Permalink
client: add warning when -no-pkce is set
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismichel committed Jul 30, 2024
1 parent b5153dc commit c5cd829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/ssh3.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,10 @@ func ClientMain() int {

log.Debug().Msgf("version %s", ssh3.GetCurrentSoftwareVersion())

if *noPKCE {
log.Warn().Msgf("Disabling PKCE is considered insecure to machine-in-the-middle attacks. Consider enabling PKCE by default!")
}

knownHostsPath := path.Join(ssh3Dir, "known_hosts")
knownHosts, skippedLines, err := ssh3.ParseKnownHosts(knownHostsPath)
if len(skippedLines) != 0 {
Expand Down

0 comments on commit c5cd829

Please sign in to comment.