Skip to content

Commit

Permalink
server: log the listening URL (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoismichel authored Dec 15, 2023
1 parent 87e3696 commit 4bb0830
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,9 @@ func main() {
ssh3Handler := ssh3Server.GetHTTPHandlerFunc(context.Background())
mux.HandleFunc(*urlPath, linux_server.HandleAuths(context.Background(), *enablePasswordLogin, 30000, ssh3Handler))
server.Handler = mux
outputMessage := fmt.Sprintf("Server started, listening on %s%s", *bindAddr, *urlPath)
fmt.Fprintln(os.Stderr, outputMessage)
log.Info().Msg(outputMessage)
err = server.ListenAndServeTLS(*certPath, *keyPath)

if err != nil {
Expand Down

0 comments on commit 4bb0830

Please sign in to comment.