Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trinity-1686a
Snowflake
Commits
aa399985
Commit
aa399985
authored
5 years ago
by
David Fifield
Browse files
Options
Downloads
Patches
Plain Diff
Move ICE server logging out of parseIceServers.
parent
509f6345
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/snowflake.go
+4
-3
4 additions, 3 deletions
client/snowflake.go
with
4 additions
and
3 deletions
client/snowflake.go
+
4
−
3
View file @
aa399985
...
...
@@ -69,16 +69,13 @@ func socksAcceptLoop(ln *pt.SocksListener, snowflakes sf.SnowflakeCollector) {
// s is a comma-separated list of ICE server URLs.
func
parseIceServers
(
s
string
)
[]
webrtc
.
ICEServer
{
var
servers
[]
webrtc
.
ICEServer
log
.
Println
(
s
)
s
=
strings
.
TrimSpace
(
s
)
if
len
(
s
)
==
0
{
return
nil
}
urls
:=
strings
.
Split
(
s
,
","
)
log
.
Printf
(
"Using ICE Servers:"
)
for
_
,
url
:=
range
urls
{
url
=
strings
.
TrimSpace
(
url
)
log
.
Printf
(
"url: %s"
,
url
)
servers
=
append
(
servers
,
webrtc
.
ICEServer
{
URLs
:
[]
string
{
url
},
})
...
...
@@ -126,6 +123,10 @@ func main() {
log
.
Println
(
"
\n\n\n
--- Starting Snowflake Client ---"
)
iceServers
:=
parseIceServers
(
*
iceServersCommas
)
log
.
Printf
(
"Using ICE servers:"
)
for
_
,
server
:=
range
iceServers
{
log
.
Printf
(
"url: %v"
,
strings
.
Join
(
server
.
URLs
,
" "
))
}
// Prepare to collect remote WebRTC peers.
snowflakes
:=
sf
.
NewPeers
(
*
max
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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