mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 07:06:51 +08:00
Update module github.com/pion/ice/v3 to v3.0.7
Generated by renovateBot
This commit is contained in:
![29139614+renovate[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
Sean DuBois

parent
a97c420d0c
commit
480be18a34
@@ -17,6 +17,7 @@ import (
|
||||
dtlsElliptic "github.com/pion/dtls/v2/pkg/crypto/elliptic"
|
||||
"github.com/pion/ice/v3"
|
||||
"github.com/pion/logging"
|
||||
"github.com/pion/stun/v2"
|
||||
"github.com/pion/transport/v3"
|
||||
"github.com/pion/transport/v3/packetio"
|
||||
"golang.org/x/net/proxy"
|
||||
@@ -91,6 +92,7 @@ type SettingEngine struct {
|
||||
iceUDPMux ice.UDPMux
|
||||
iceProxyDialer proxy.Dialer
|
||||
iceDisableActiveTCP bool
|
||||
iceBindingRequestHandler func(m *stun.Message, local, remote ice.Candidate, pair *ice.CandidatePair) bool
|
||||
disableMediaEngineCopy bool
|
||||
srtpProtectionProfiles []dtls.SRTPProtectionProfile
|
||||
receiveMTU uint
|
||||
@@ -458,3 +460,12 @@ func (e *SettingEngine) SetDTLSCustomerCipherSuites(customCipherSuites func() []
|
||||
func (e *SettingEngine) SetSCTPRTOMax(rtoMax time.Duration) {
|
||||
e.sctp.rtoMax = rtoMax
|
||||
}
|
||||
|
||||
// SetICEBindingRequestHandler sets a callback that is fired on a STUN BindingRequest
|
||||
// This allows users to do things like
|
||||
// - Log incoming Binding Requests for debugging
|
||||
// - Implement draft-thatcher-ice-renomination
|
||||
// - Implement custom CandidatePair switching logic
|
||||
func (e *SettingEngine) SetICEBindingRequestHandler(bindingRequestHandler func(m *stun.Message, local, remote ice.Candidate, pair *ice.CandidatePair) bool) {
|
||||
e.iceBindingRequestHandler = bindingRequestHandler
|
||||
}
|
||||
|
Reference in New Issue
Block a user