Skip to content

Commit

Permalink
[+] add build commit and date to --version output, closes #256
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Sep 24, 2024
1 parent 0b0fb6a commit 802a030
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ import (

var (
// vip-manager version definition
version = "2.4.0"
version = "master"
commit = "none"
date = "unknown"
)

func getMask(vip netip.Addr, mask int) net.IPMask {
Expand Down Expand Up @@ -48,6 +50,8 @@ func main() {
// return nil, nil
// }
fmt.Printf("version: %s\n", version)
fmt.Printf("commit: %s\n", commit)
fmt.Printf("date: %s\n", date)
return
}

Expand Down

0 comments on commit 802a030

Please sign in to comment.