[client] Limit P2P attempts and restart on specific events (#2657)

This commit is contained in:
Viktor Liu
2024-10-08 11:21:11 +02:00
committed by GitHub
parent 2c1f5e46d5
commit 44e8107383
5 changed files with 285 additions and 58 deletions

View File

@@ -2,6 +2,6 @@ package peer
import "github.com/netbirdio/netbird/client/internal/stdnet"
func (w *WorkerICE) newStdNet() (*stdnet.Net, error) {
return stdnet.NewNetWithDiscover(w.iFaceDiscover, w.config.ICEConfig.InterfaceBlackList)
func newStdNet(iFaceDiscover stdnet.ExternalIFaceDiscover, ifaceBlacklist []string) (*stdnet.Net, error) {
return stdnet.NewNetWithDiscover(iFaceDiscover, ifaceBlacklist)
}