Update GoReleaser config

This commit is contained in:
David Stotijn
2022-01-25 13:20:16 +01:00
parent d84d2d0905
commit 1489cb16bf
6 changed files with 79 additions and 75 deletions

View File

@ -27,6 +27,9 @@ import (
"github.com/dstotijn/hetty/pkg/scope"
)
var version = "v0.0.0"
// Flag variables.
var (
caCertFile string
caKeyFile string
@ -141,7 +144,7 @@ func run() error {
TLSNextProto: map[string]func(*http.Server, *tls.Conn, http.Handler){}, // Disable HTTP/2
}
log.Printf("[INFO] Running server on %v ...", addr)
log.Printf("[INFO] Hetty (%v) is running on %v ...", version, addr)
err = s.ListenAndServe()
if err != nil && errors.Is(err, http.ErrServerClosed) {