add network for bypass

This commit is contained in:
ginuerzh
2023-09-30 17:51:55 +08:00
parent ea585fc25d
commit 836cf6eade
24 changed files with 92 additions and 160 deletions

View File

@ -55,10 +55,10 @@ func (w *chainWrapper) Metadata() metadata.Metadata {
return nil
}
func (w *chainWrapper) Route(ctx context.Context, network, address string) chain.Route {
func (w *chainWrapper) Route(ctx context.Context, network, address string, opts ...chain.RouteOption) chain.Route {
v := w.r.get(w.name)
if v == nil {
return nil
}
return v.Route(ctx, network, address)
return v.Route(ctx, network, address, opts...)
}