relay: allow users to explicitly add relay addresses
This commit is contained in:
parent
7093262620
commit
87d57b5155
|
@ -128,7 +128,7 @@ func (cfg *Config) NewNode(ctx context.Context) (host.Host, error) {
|
|||
// TODO: We shouldn't be doing this here.
|
||||
oldFactory := h.AddrsFactory
|
||||
h.AddrsFactory = func(addrs []ma.Multiaddr) []ma.Multiaddr {
|
||||
return relay.Filter(oldFactory(addrs))
|
||||
return oldFactory(relay.Filter(addrs))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue