relay: allow users to explicitly add relay addresses

This commit is contained in:
Steven Allen 2019-04-06 08:23:07 -07:00
parent 7093262620
commit 87d57b5155
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}
}