Skip to content

Commit

Permalink
Move fallbacks at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Oct 14, 2021
1 parent 578a217 commit eeb466a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/edgevpn/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var defaultLibp2pOptions = []libp2p.Option{
libp2p.EnableAutoRelay(),
libp2p.EnableNATService(),
libp2p.NATPortMap(),
libp2p.FallbackDefaults,
}

func (e *EdgeVPN) Host() host.Host {
Expand Down Expand Up @@ -80,6 +79,8 @@ func (e *EdgeVPN) genHost(ctx context.Context) (host.Host, error) {
opts = append(opts, libp2p.NoSecurity)
}

opts = append(opts, libp2p.FallbackDefaults)

return libp2p.New(ctx, opts...)
}

Expand Down

0 comments on commit eeb466a

Please sign in to comment.