add api config for router

This commit is contained in:
ginuerzh
2023-11-19 16:16:12 +08:00
parent c95edd6ed3
commit 44064e4dd1
7 changed files with 179 additions and 81 deletions

View File

@ -38,12 +38,3 @@ func (w *routerWrapper) GetRoute(ctx context.Context, dst net.IP, opts ...router
}
return v.GetRoute(ctx, dst, opts...)
}
func (w *routerWrapper) SetRoute(ctx context.Context, route *router.Route, opts ...router.Option) bool {
v := w.r.get(w.name)
if v == nil {
return false
}
return v.SetRoute(ctx, route, opts...)
}