diff options
Diffstat (limited to 'cmd/gobgp/main.go')
-rw-r--r-- | cmd/gobgp/main.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/gobgp/main.go b/cmd/gobgp/main.go index 41f95ab2..079b1d4a 100644 --- a/cmd/gobgp/main.go +++ b/cmd/gobgp/main.go @@ -19,14 +19,13 @@ import ( "fmt" "os" + "github.com/osrg/gobgp/internal/pkg/version" "google.golang.org/grpc" ) -var version = "master" - func main() { if len(os.Args) > 1 && os.Args[1] == "--version" { - fmt.Println("gobgp version", version) + fmt.Println("gobgp version", version.Version()) os.Exit(0) } grpc.EnableTracing = false |