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
461324d3
Commit
461324d3
authored
9 years ago
by
Arlo Breault
Browse files
Options
Downloads
Patches
Plain Diff
Update for this repo
parent
aa46a58e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
README.md
+6
-4
6 additions, 4 deletions
README.md
torrc
+1
-1
1 addition, 1 deletion
torrc
webrtc-client.go
+2
-5
2 additions, 5 deletions
webrtc-client.go
with
12 additions
and
10 deletions
.gitignore
+
3
−
0
View file @
461324d3
...
...
@@ -2,3 +2,6 @@
*.swo
*.swn
ignore/
datadir/
snowflake
webrtc-client.log
This diff is collapsed.
Click to expand it.
README.md
+
6
−
4
View file @
461324d3
...
...
@@ -9,10 +9,12 @@ Open up four terminals:
1.
tor -f torrc SOCKSPort auto
2.
tail -F webrtc-client.log
3.
cat > signal
4.
../demo/chat/chat
4.
open proxy/snowflake.html
Look for the offer in terminal 2; copy and paste it into terminal 4.
Copy and paste the answer from terminal 4 to terminal 3. At this point
you should see some TLS garbage in the chat window.
Look for the offer in terminal 2; copy and paste it into the browswer window
opened from terminal 4. Copy and paste the answer from terminal 4 to terminal 3.
At this point you should see some TLS garbage in the chat window.
### More
More documentation on the way.
This diff is collapsed.
Click to expand it.
torrc
+
1
−
1
View file @
461324d3
UseBridges 1
DataDirectory datadir
ClientTransportPlugin webrtc exec ./
webrtc-client
ClientTransportPlugin webrtc exec ./
snowflake
Bridge webrtc 0.0.3.0:1
This diff is collapsed.
Click to expand it.
webrtc-client.go
+
2
−
5
View file @
461324d3
...
...
@@ -57,11 +57,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) {
func
(
c
*
webRTCConn
)
Write
(
b
[]
byte
)
(
int
,
error
)
{
log
.
Printf
(
"webrtc Write %d %q"
,
len
(
b
),
string
(
b
))
err
:=
c
.
dc
.
Send
(
b
)
if
err
!=
nil
{
return
0
,
err
}
return
len
(
b
),
err
c
.
dc
.
Send
(
b
)
return
len
(
b
),
nil
}
func
(
c
*
webRTCConn
)
Close
()
error
{
...
...
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