From aed4ac45912a02b53479d33af7120595d3073bac Mon Sep 17 00:00:00 2001 From: Stephan Rotolante Date: Wed, 3 Apr 2024 00:23:50 -0400 Subject: [PATCH] Expose stunGatherTimeout config from ice pkg Relates to https://github.com/pion/webrtc/issues/2668 --- icegatherer.go | 1 + settingengine.go | 1 + 2 files changed, 2 insertions(+) diff --git a/icegatherer.go b/icegatherer.go index 76e16ce3ba8..e2eede970aa 100644 --- a/icegatherer.go +++ b/icegatherer.go @@ -108,6 +108,7 @@ func (g *ICEGatherer) createAgent() error { SrflxAcceptanceMinWait: g.api.settingEngine.timeout.ICESrflxAcceptanceMinWait, PrflxAcceptanceMinWait: g.api.settingEngine.timeout.ICEPrflxAcceptanceMinWait, RelayAcceptanceMinWait: g.api.settingEngine.timeout.ICERelayAcceptanceMinWait, + StunGatherTimeout: g.api.settingEngine.timeout.ICEStunGatherTimeout, InterfaceFilter: g.api.settingEngine.candidates.InterfaceFilter, IPFilter: g.api.settingEngine.candidates.IPFilter, NAT1To1IPs: g.api.settingEngine.candidates.NAT1To1IPs, diff --git a/settingengine.go b/settingengine.go index f121d050b6a..5f118853dee 100644 --- a/settingengine.go +++ b/settingengine.go @@ -41,6 +41,7 @@ type SettingEngine struct { ICESrflxAcceptanceMinWait *time.Duration ICEPrflxAcceptanceMinWait *time.Duration ICERelayAcceptanceMinWait *time.Duration + ICEStunGatherTimeout *time.Duration } candidates struct { ICELite bool