~kt/udprelay

446ea0edb96640c674d388cb1f7b27c128db7e88 — Katie Wolfe 11 months ago 2491c5f
Print version to stderr before doing anything
1 files changed, 2 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +2 -1
@@ 15,8 15,9 @@ var flagProtocol = flag.Bool("protocol", false, "enables the udprelay command pr

func main() {
	log.SetFlags(0)
	log.Printf("udprelay %s\n", Version)
	flag.Usage = func() {
		fmt.Fprintf(flag.CommandLine.Output(), "udprelay %s\nusage: %s [OPTION...] port\n\noptions:\n", Version, os.Args[0])
		fmt.Fprintf(flag.CommandLine.Output(), "usage: %s [OPTION...] port\n\noptions:\n", os.Args[0])
		flag.PrintDefaults()
	}
	flag.Parse()