File tree 4 files changed +10
-3
lines changed
4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/pion/datachannel v1.5.6
7
7
github.com/pion/dtls/v2 v2.2.10
8
- github.com/pion/ice/v3 v3.0.4
8
+ github.com/pion/ice/v3 v3.0.5
9
9
github.com/pion/interceptor v0.1.27
10
10
github.com/pion/logging v0.2.2
11
11
github.com/pion/randutil v0.1.0
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ github.com/pion/datachannel v1.5.6/go.mod h1:1eKT6Q85pRnr2mHiWHxJwO50SfZRtWHTsNI
43
43
github.com/pion/dtls/v2 v2.2.7 /go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s =
44
44
github.com/pion/dtls/v2 v2.2.10 h1:u2Axk+FyIR1VFTPurktB+1zoEPGIW3bmyj3LEFrXjAA =
45
45
github.com/pion/dtls/v2 v2.2.10 /go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE =
46
- github.com/pion/ice/v3 v3.0.4 h1:TqEdK0nWHm3vs76Rvgd7dpDKhGzagtZ7u+kt0b9ed/s =
47
- github.com/pion/ice/v3 v3.0.4 /go.mod h1:GIQiugpGkBDvh18nhFLRoHgabZ9VSRJOaEPh1nHjdrs =
46
+ github.com/pion/ice/v3 v3.0.5 h1:V6tNvpGS/vNJBWh3BEzQrwiPncOmLx7jbbSJM/2PFHE =
47
+ github.com/pion/ice/v3 v3.0.5 /go.mod h1:GIQiugpGkBDvh18nhFLRoHgabZ9VSRJOaEPh1nHjdrs =
48
48
github.com/pion/interceptor v0.1.27 h1:mZ01OiGiukwRxezmDGzYjjokCVlDOk4T6BfaL5qrtGo =
49
49
github.com/pion/interceptor v0.1.27 /go.mod h1:/vVaqLwDjGv4GRbgmChIKZIT5EXFDijwmj4WmIYy9bI =
50
50
github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY =
Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ func (g *ICEGatherer) createAgent() error {
108
108
SrflxAcceptanceMinWait : g .api .settingEngine .timeout .ICESrflxAcceptanceMinWait ,
109
109
PrflxAcceptanceMinWait : g .api .settingEngine .timeout .ICEPrflxAcceptanceMinWait ,
110
110
RelayAcceptanceMinWait : g .api .settingEngine .timeout .ICERelayAcceptanceMinWait ,
111
+ STUNGatherTimeout : g .api .settingEngine .timeout .ICESTUNGatherTimeout ,
111
112
InterfaceFilter : g .api .settingEngine .candidates .InterfaceFilter ,
112
113
IPFilter : g .api .settingEngine .candidates .IPFilter ,
113
114
NAT1To1IPs : g .api .settingEngine .candidates .NAT1To1IPs ,
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ type SettingEngine struct {
41
41
ICESrflxAcceptanceMinWait * time.Duration
42
42
ICEPrflxAcceptanceMinWait * time.Duration
43
43
ICERelayAcceptanceMinWait * time.Duration
44
+ ICESTUNGatherTimeout * time.Duration
44
45
}
45
46
candidates struct {
46
47
ICELite bool
@@ -157,6 +158,11 @@ func (e *SettingEngine) SetRelayAcceptanceMinWait(t time.Duration) {
157
158
e .timeout .ICERelayAcceptanceMinWait = & t
158
159
}
159
160
161
+ // SetSTUNGatherTimeout sets the ICESTUNGatherTimeout
162
+ func (e * SettingEngine ) SetSTUNGatherTimeout (t time.Duration ) {
163
+ e .timeout .ICESTUNGatherTimeout = & t
164
+ }
165
+
160
166
// SetEphemeralUDPPortRange limits the pool of ephemeral ports that
161
167
// ICE UDP connections can allocate from. This affects both host candidates,
162
168
// and the local address of server reflexive candidates.
You can’t perform that action at this time.
0 commit comments