From ef86b932725f0fe6aaf1247ccb900dc99b53472a Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Sat, 25 May 2019 15:54:26 -0700 Subject: [PATCH] Add CandidateTypes to AgentConfig Allow users to specify CandidateTypes, this allows us to support IceTransportPolicy in pion/webrtc --- agent.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/agent.go b/agent.go index 76f66f6..ba66be2 100644 --- a/agent.go +++ b/agent.go @@ -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