Skip to content

Commit

Permalink
Fix an assignment to err (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkaeriit authored Feb 1, 2024
1 parent 9e68e9b commit 2d44ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func main() {
}
}()
}
err := ssh.ListenAndServe(fmt.Sprintf(":%d", Config.Port), nil, ssh.HostKeyFile(Config.KeyFile),
err = ssh.ListenAndServe(fmt.Sprintf(":%d", Config.Port), nil, ssh.HostKeyFile(Config.KeyFile),
ssh.PublicKeyAuth(func(ctx ssh.Context, key ssh.PublicKey) bool {
return true // allow all keys, this lets us hash pubkeys later
}),
Expand Down

0 comments on commit 2d44ac3

Please sign in to comment.