Skip to content
Snippets Groups Projects
Commit 461324d3 authored by Arlo Breault's avatar Arlo Breault
Browse files

Update for this repo

parent aa46a58e
No related branches found
No related tags found
No related merge requests found
...@@ -2,3 +2,6 @@ ...@@ -2,3 +2,6 @@
*.swo *.swo
*.swn *.swn
ignore/ ignore/
datadir/
snowflake
webrtc-client.log
...@@ -9,10 +9,12 @@ Open up four terminals: ...@@ -9,10 +9,12 @@ Open up four terminals:
1. tor -f torrc SOCKSPort auto 1. tor -f torrc SOCKSPort auto
2. tail -F webrtc-client.log 2. tail -F webrtc-client.log
3. cat > signal 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. Look for the offer in terminal 2; copy and paste it into the browswer window
Copy and paste the answer from terminal 4 to terminal 3. At this point opened from terminal 4. Copy and paste the answer from terminal 4 to terminal 3.
you should see some TLS garbage in the chat window. At this point you should see some TLS garbage in the chat window.
### More
More documentation on the way. More documentation on the way.
UseBridges 1 UseBridges 1
DataDirectory datadir DataDirectory datadir
ClientTransportPlugin webrtc exec ./webrtc-client ClientTransportPlugin webrtc exec ./snowflake
Bridge webrtc 0.0.3.0:1 Bridge webrtc 0.0.3.0:1
...@@ -57,11 +57,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) { ...@@ -57,11 +57,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) {
func (c *webRTCConn) Write(b []byte) (int, error) { func (c *webRTCConn) Write(b []byte) (int, error) {
log.Printf("webrtc Write %d %q", len(b), string(b)) log.Printf("webrtc Write %d %q", len(b), string(b))
err := c.dc.Send(b) c.dc.Send(b)
if err != nil { return len(b), nil
return 0, err
}
return len(b), err
} }
func (c *webRTCConn) Close() error { func (c *webRTCConn) Close() error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment