Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
31efabbe
Commit
31efabbe
authored
Oct 06, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable mDNS gathering by default.
parent
86f75946
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
go.mod
go.mod
+1
-0
group/group.go
group/group.go
+5
-0
sfu.go
sfu.go
+1
-0
No files found.
go.mod
View file @
31efabbe
...
...
@@ -5,6 +5,7 @@ go 1.13
require (
github.com/at-wat/ebml-go v0.11.0
github.com/gorilla/websocket v1.4.2
github.com/pion/ice/v2 v2.0.7
github.com/pion/rtcp v1.2.4
github.com/pion/rtp v1.6.1
github.com/pion/webrtc/v3 v3.0.0-beta.7
...
...
group/group.go
View file @
31efabbe
...
...
@@ -15,10 +15,12 @@ import (
"sync"
"time"
"github.com/pion/ice/v2"
"github.com/pion/webrtc/v3"
)
var
Directory
string
var
UseMDNS
bool
type
UserError
string
...
...
@@ -143,6 +145,9 @@ func Add(name string, desc *description) (*Group, error) {
if
groups
.
groups
==
nil
{
groups
.
groups
=
make
(
map
[
string
]
*
Group
)
s
:=
webrtc
.
SettingEngine
{}
if
!
UseMDNS
{
s
.
SetICEMulticastDNSMode
(
ice
.
MulticastDNSModeDisabled
)
}
m
:=
webrtc
.
MediaEngine
{}
m
.
RegisterCodec
(
webrtc
.
NewRTPVP8CodecExt
(
webrtc
.
DefaultPayloadTypeVP8
,
90000
,
...
...
sfu.go
View file @
31efabbe
...
...
@@ -38,6 +38,7 @@ func main() {
"store memory profile in `file`"
)
flag
.
StringVar
(
&
mutexprofile
,
"mutexprofile"
,
""
,
"store mutex profile in `file`"
)
flag
.
BoolVar
(
&
group
.
UseMDNS
,
"mdns"
,
false
,
"gather mDNS addresses"
)
flag
.
Parse
()
if
cpuprofile
!=
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment