mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-23 05:49:07 +02:00
27 lines
718 B
Go
27 lines
718 B
Go
package ice
|
|
|
|
import (
|
|
"github.com/netbirdio/ice/v4"
|
|
|
|
"github.com/netbirdio/netbird/client/internal/stdnet"
|
|
)
|
|
|
|
type Config struct {
|
|
// StunTurn is a list of STUN and TURN URLs
|
|
StunTurn *StunTurn // []*stun.URI
|
|
|
|
// InterfaceBlackList is a list of machine interfaces that should be filtered out by ICE Candidate gathering
|
|
// (e.g. if eth0 is in the list, host candidate of this interface won't be used)
|
|
InterfaceBlackList []string
|
|
DisableIPv6Discovery bool
|
|
|
|
UDPMux ice.UDPMux
|
|
UDPMuxSrflx ice.UniversalUDPMux
|
|
|
|
NATExternalIPs []string
|
|
|
|
// WGDetector is shared by every agent so that the WireGuard check the interface
|
|
// filter performs is not repeated for each of them.
|
|
WGDetector *stdnet.WGDetector
|
|
}
|