From 6211d07ca420be0f84e5081cd15112921afa2663 Mon Sep 17 00:00:00 2001 From: Sundog Date: Fri, 16 Apr 2021 18:34:57 -0700 Subject: [PATCH] fix command flag help message --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 68186c4..5c11a1d 100644 --- a/main.go +++ b/main.go @@ -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 {