Commit 6bdfcac0 authored by vyzo's avatar vyzo
Browse files

use AllAddrs as the address factory in autonat

parent d24fe6ae
......@@ -40,7 +40,7 @@ type AutoRelayHost struct {
}
func NewAutoRelayHost(ctx context.Context, bhost *basic.BasicHost, discover discovery.Discoverer) *AutoRelayHost {
autonat := autonat.NewAutoNAT(ctx, bhost)
autonat := autonat.NewAutoNAT(ctx, bhost, bhost.AllAddrs)
h := &AutoRelayHost{
BasicHost: bhost,
discover: discover,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment