Add CandidateTypes to AgentConfig

Allow users to specify CandidateTypes, this allows us to support
IceTransportPolicy in pion/webrtc
This commit is contained in:
Sean DuBois
2019-05-25 15:57:39 -07:00
parent ab335bc1f9
commit ef86b93272
+5 -1
View File
@@ -148,10 +148,14 @@ type AgentConfig struct {
// A keepalive interval of 0 means we never send keepalive packets
KeepaliveInterval *time.Duration
// NetworkTypes is an optional configuration for disabling or enablding
// NetworkTypes is an optional configuration for disabling or enabling
// support for specific network types.
NetworkTypes []NetworkType
// CandidateTypes is an optional configuration for disabling or enabling
// support for specific candidate types.
CandidateTypes []CandidateType
LoggerFactory logging.LoggerFactory
// taskLoopInterval controls how often our internal task loop runs, this