fix command flag help message

This commit is contained in:
Sundog Jones 2021-04-16 18:34:57 -07:00
parent 5342c7933c
commit 6211d07ca4

View File

@ -80,13 +80,12 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
defer w.Close() defer w.Close()
l, err := net.Listen("tcp", *host+":"+strconv.Itoa(*port)) l, err := net.Listen("tcp", *host+":"+strconv.Itoa(*port))
if err != nil { if err != nil {
log.Panicln(err) log.Panicln(err)
} }
log.Println("Listening to connections at '"+*host+"' on port", strconv.Itoa(*port)) 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() defer l.Close()
for { for {