Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
webrtc
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
sign
backend
lib
webrtc
Commits
c75da547
Commit
c75da547
authored
2 years ago
by
cnderrauber
Committed by
cnderrauber
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add EnableLoopbackCandidate flag
Add EnableLoopbackCandidate flag
parent
5faad1ed
Branches
Branches containing commit
Tags
v3.1.49
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
icegatherer.go
+1
-0
1 addition, 0 deletions
icegatherer.go
settingengine.go
+17
-10
17 additions, 10 deletions
settingengine.go
with
18 additions
and
10 deletions
icegatherer.go
+
1
−
0
View file @
c75da547
...
...
@@ -108,6 +108,7 @@ func (g *ICEGatherer) createAgent() error {
IPFilter
:
g
.
api
.
settingEngine
.
candidates
.
IPFilter
,
NAT1To1IPs
:
g
.
api
.
settingEngine
.
candidates
.
NAT1To1IPs
,
NAT1To1IPCandidateType
:
nat1To1CandiTyp
,
IncludeLoopback
:
g
.
api
.
settingEngine
.
candidates
.
IncludeLoopbackCandidate
,
Net
:
g
.
api
.
settingEngine
.
vnet
,
MulticastDNSMode
:
mDNSMode
,
MulticastDNSHostName
:
g
.
api
.
settingEngine
.
candidates
.
MulticastDNSHostName
,
...
...
This diff is collapsed.
Click to expand it.
settingengine.go
+
17
−
10
View file @
c75da547
...
...
@@ -37,16 +37,17 @@ type SettingEngine struct {
ICERelayAcceptanceMinWait
*
time
.
Duration
}
candidates
struct
{
ICELite
bool
ICENetworkTypes
[]
NetworkType
InterfaceFilter
func
(
string
)
bool
IPFilter
func
(
net
.
IP
)
bool
NAT1To1IPs
[]
string
NAT1To1IPCandidateType
ICECandidateType
MulticastDNSMode
ice
.
MulticastDNSMode
MulticastDNSHostName
string
UsernameFragment
string
Password
string
ICELite
bool
ICENetworkTypes
[]
NetworkType
InterfaceFilter
func
(
string
)
bool
IPFilter
func
(
net
.
IP
)
bool
NAT1To1IPs
[]
string
NAT1To1IPCandidateType
ICECandidateType
MulticastDNSMode
ice
.
MulticastDNSMode
MulticastDNSHostName
string
UsernameFragment
string
Password
string
IncludeLoopbackCandidate
bool
}
replayProtection
struct
{
DTLS
*
uint
...
...
@@ -195,6 +196,12 @@ func (e *SettingEngine) SetNAT1To1IPs(ips []string, candidateType ICECandidateTy
e
.
candidates
.
NAT1To1IPCandidateType
=
candidateType
}
// SetIncludeLoopbackCandidate enable pion to gather loopback candidates, it is useful
// for some VM have public IP mapped to loopback interface
func
(
e
*
SettingEngine
)
SetIncludeLoopbackCandidate
(
include
bool
)
{
e
.
candidates
.
IncludeLoopbackCandidate
=
include
}
// SetAnsweringDTLSRole sets the DTLS role that is selected when offering
// The DTLS role controls if the WebRTC Client as a client or server. This
// may be useful when interacting with non-compliant clients or debugging issues.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment