diff options
author | EuAndreh <eu@euandre.org> | 2024-10-20 04:03:28 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-10-20 04:03:28 -0300 |
commit | b747069fa62351904b567d6283ca2ca337efa5cf (patch) | |
tree | c108ff57239511e743c2e7ff2a23b9060d38957e /src/untls.go | |
parent | Makefile: "var version" -> "const Version" (diff) | |
download | untls-b747069fa62351904b567d6283ca2ca337efa5cf.tar.gz untls-b747069fa62351904b567d6283ca2ca337efa5cf.tar.xz |
Adapt to latest golang Makefile skeleton
Diffstat (limited to 'src/untls.go')
-rw-r--r-- | src/untls.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/untls.go b/src/untls.go index e61f2e9..fedb6bf 100644 --- a/src/untls.go +++ b/src/untls.go @@ -32,7 +32,7 @@ func parseArgs(args []string) _CLIArgs { if len(args) != 5 { fmt.Fprintf( os.Stderr, - "Usage: %s CERT.pem KEY.pem FROM.socket TO.socket\n", + "Usage: %s CERT.pem PRIVKEY.pem FROM.socket TO.socket\n", args[0], ) os.Exit(2) @@ -106,7 +106,7 @@ func start(toAddr string, listener net.Listener) { func Main() { - g.Init(slog.Group("versions", "gobang", g.Version, "this", version)) + g.Init(slog.Group("versions", "gobang", g.Version, "this", Version)) args := parseArgs(os.Args) listener := listen(args.certFile, args.keyFile, args.fromAddr) start(args.toAddr, listener) |