fix command flag help message
This commit is contained in:
parent
5342c7933c
commit
6211d07ca4
3
main.go
3
main.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user