add api config for router
This commit is contained in:
1 parent
c95edd6ed3
commit
44064e4dd1
7 files changed
+179
-81
No files matched your search
@@ -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...)
|
||||
}
|
||||
Reference in new issue
Block a user