Skip to content

Commit

Permalink
add connection log
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jan 4, 2021
1 parent 9ad10cc commit b072e2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions birdrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ func main() {
log.Printf("using bird path: %s\n", *birdPath)

ssh.Handle(func(s ssh.Session) {
log.Printf("new connection from %s\n", s.RemoteAddr())

if *bannerPath != "" { // If bannerPath is set
s.Write(banner)
}
Expand Down

0 comments on commit b072e2e

Please sign in to comment.