diff options
author | EuAndreh <eu@euandre.org> | 2024-08-15 07:34:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-15 07:34:56 -0300 |
commit | 3833dbae57bcf87a33ecbb38fb877861fb1c8d63 (patch) | |
tree | 311a6b6e5914ba2f6ab1ebf1d61fdcfd19afac71 /src/untls.go | |
parent | Makefile: Simplify a bit compile rule (diff) | |
download | untls-3833dbae57bcf87a33ecbb38fb877861fb1c8d63.tar.gz untls-3833dbae57bcf87a33ecbb38fb877861fb1c8d63.tar.xz |
Add src/version.go
Diffstat (limited to 'src/untls.go')
-rw-r--r-- | src/untls.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/untls.go b/src/untls.go index 545ee2e..e61f2e9 100644 --- a/src/untls.go +++ b/src/untls.go @@ -4,6 +4,7 @@ import ( "crypto/tls" "fmt" "io" + "log/slog" "net" "os" @@ -105,7 +106,7 @@ func start(toAddr string, listener net.Listener) { func Main() { - g.Init() + 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) |