fix command flag help message

This commit is contained in:
Sundog Jones 2021-04-16 18:34:57 -07:00
parent 5342c7933c
commit 6211d07ca4
1 changed files with 1 additions and 2 deletions

View File

@ -80,13 +80,12 @@ func main() {
log.Fatal(err)
}
defer w.Close()
l, err := net.Listen("tcp", *host+":"+strconv.Itoa(*port))
if err != nil {
log.Panicln(err)
}
log.Println("Listening to connections at '"+*host+"' on port", strconv.Itoa(*port))
log.Println("(If you want to run this on a different address or port, the command line flags --host and --port are available to you.)")
log.Println("(If you want to run this on a different address or port, the command line flags -host and -port are available to you.)")
defer l.Close()
for {