Skip to content

Commit

Permalink
display ip and port at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcoder04 committed Nov 16, 2024
1 parent 113d7cf commit b21dfc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func init() {
if err != nil {
panic("failed to get local ip address")
}
fmt.Printf("Starting server on %s:%s.\n", IP, Port)

// generate qr code
err = QREncode(fmt.Sprintf("http://%s:%s/", IP, Port))
Expand Down

0 comments on commit b21dfc8

Please sign in to comment.