diff --git a/ziti/router/run.go b/ziti/router/run.go index 1f1e9fd8a..4d623469d 100644 --- a/ziti/router/run.go +++ b/ziti/router/run.go @@ -84,7 +84,7 @@ func run(cmd *cobra.Command, args []string) { xgressEdgeTransportFactory := xgress_edge_transport.NewFactory() xgress.GlobalRegistry().Register(xgress_edge_transport.BindingName, xgressEdgeTransportFactory) - xgressEdgeTunnelFactory := xgress_edge_tunnel.NewFactory(config, stateManager, r.GetMetricsRegistry()) + xgressEdgeTunnelFactory := xgress_edge_tunnel.NewFactory(r, config, stateManager) xgress.GlobalRegistry().Register(edge_common.TunnelBinding, xgressEdgeTunnelFactory) if err := r.RegisterXrctrl(xgressEdgeTunnelFactory); err != nil { logrus.WithError(err).Panic("error registering edge tunnel in framework")