diff options
author | Daniel Martà <mvdan@mvdan.cc> | 2015-03-16 19:47:37 +0100 |
---|---|---|
committer | Daniel Martà <mvdan@mvdan.cc> | 2015-03-16 19:47:37 +0100 |
commit | 19dcb424be201c3eb5f204607d46fb78b36105c9 (patch) | |
tree | 1b4472a88d601a7486731792fa9bf8c31c661ba0 /transports/obfs2 | |
parent | 08647ec58034ecdc4ea60e7eb37c9e91fff784d6 (diff) |
Fix all go vet issues
Diffstat (limited to 'transports/obfs2')
-rw-r--r-- | transports/obfs2/obfs2.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/transports/obfs2/obfs2.go b/transports/obfs2/obfs2.go index ad15671..f8efac1 100644 --- a/transports/obfs2/obfs2.go +++ b/transports/obfs2/obfs2.go @@ -235,7 +235,7 @@ func (conn *obfs2Conn) handshake() (err error) { return } txStream := cipher.NewCTR(txBlock, padIV) - conn.tx = &cipher.StreamWriter{txStream, conn.Conn, nil} + conn.tx = &cipher.StreamWriter{S: txStream, W: conn.Conn} if _, err = conn.Conn.Write(seed[:]); err != nil { return } @@ -262,7 +262,7 @@ func (conn *obfs2Conn) handshake() (err error) { return } rxStream := cipher.NewCTR(rxBlock, peerIV) - conn.rx = &cipher.StreamReader{rxStream, conn.Conn} + conn.rx = &cipher.StreamReader{S: rxStream, R: conn.Conn} hsHdr := make([]byte, hsLen) if _, err = io.ReadFull(conn, hsHdr[:]); err != nil { return |