Ensure router gets version set. Fixes netfoundry/ziti-edge#116
package main
import (
+ "github.com/michaelquigley/pfxlog"
+ "github.com/netfoundry/ziti-cmd/common/version"
"github.com/netfoundry/ziti-cmd/ziti-router/subcmd"
+ "github.com/netfoundry/ziti-edge/build"
"github.com/netfoundry/ziti-foundation/transport"
"github.com/netfoundry/ziti-foundation/transport/quic"
"github.com/netfoundry/ziti-foundation/transport/tcp"
"github.com/netfoundry/ziti-foundation/transport/tls"
- "github.com/michaelquigley/pfxlog"
"github.com/sirupsen/logrus"
)
@@ -32,6 +34,8 @@ func init() {
transport.AddAddressParser(quic.AddressParser{})
transport.AddAddressParser(tls.AddressParser{})
transport.AddAddressParser(tcp.AddressParser{})
+
+ build.InitBuildInfo(version.GetCmdBuildInfo())
}
func main() {
