summaryrefslogtreecommitdiff
path: root/src/untls.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-20 04:03:28 -0300
committerEuAndreh <eu@euandre.org>2024-10-20 04:03:28 -0300
commitb747069fa62351904b567d6283ca2ca337efa5cf (patch)
treec108ff57239511e743c2e7ff2a23b9060d38957e /src/untls.go
parentMakefile: "var version" -> "const Version" (diff)
downloaduntls-b747069fa62351904b567d6283ca2ca337efa5cf.tar.gz
untls-b747069fa62351904b567d6283ca2ca337efa5cf.tar.xz
Adapt to latest golang Makefile skeleton
Diffstat (limited to 'src/untls.go')
-rw-r--r--src/untls.go4
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)