mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Update for this repo
This commit is contained in:
parent
aa46a58e3e
commit
461324d36e
4 changed files with 12 additions and 10 deletions
|
@ -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