mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
Update for this repo
This commit is contained in:
parent
aa46a58e3e
commit
461324d36e
4 changed files with 12 additions and 10 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,3 +2,6 @@
|
|||
*.swo
|
||||
*.swn
|
||||
ignore/
|
||||
datadir/
|
||||
snowflake
|
||||
webrtc-client.log
|
||||
|
|
10
README.md
10
README.md
|
@ -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.
|
||||
|
|
2
torrc
2
torrc
|
@ -1,5 +1,5 @@
|
|||
UseBridges 1
|
||||
DataDirectory datadir
|
||||
|
||||
ClientTransportPlugin webrtc exec ./webrtc-client
|
||||
ClientTransportPlugin webrtc exec ./snowflake
|
||||
Bridge webrtc 0.0.3.0:1
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue