Follow

I regret nothing

ssh.Handle(func(s ssh.Session) {
if len(s.Command()) == 0 {
io.WriteString(s, http.StatusText(http.StatusBadRequest))
s.Exit(http.StatusBadRequest)
return
}
....

@miek there's something I find oddly satisfying about using the http status codes as exit statuses.

Sign in to participate in the conversation
mastodon.cloud

Everyone is welcome as long as you follow our code of conduct! Thank you. Mastodon.cloud is maintained by Sujitech, LLC.