summaryrefslogtreecommitdiff
path: root/obfs4.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-24 04:47:10 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-24 04:47:10 +0000
commitb3f0f51775ae2e19c62c70e15f77ef991ad4bb49 (patch)
tree0a779fe20ffead1e8a87ba209ac566829c7ce93a /obfs4.go
parente77ddddf4d10dbd3387c2e4714c287c546c70512 (diff)
Move utils.go to csrand/csrand.go, and clean up the interface.
All of the obfs4 code except unit tests now uses the csrand wrapper routines.
Diffstat (limited to 'obfs4.go')
-rw-r--r--obfs4.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/obfs4.go b/obfs4.go
index 3bbccb3..6978a97 100644
--- a/obfs4.go
+++ b/obfs4.go
@@ -51,7 +51,7 @@ const (
maxCloseDelayBytes = maxHandshakeLength
maxCloseDelay = 60
- maxIatDelay = 100
+ maxIatDelay = 100
)
type connState int
@@ -472,7 +472,7 @@ func (c *Obfs4Conn) Write(b []byte) (n int, err error) {
if err != nil {
return 0, err
}
- time.Sleep(iatDelta * time.Microsecond)
+ time.Sleep(iatDelta * time.Microsecond)
}
} else {
_, err = c.conn.Write(frameBuf.Bytes())
@@ -584,7 +584,7 @@ type Obfs4Listener struct {
keyPair *ntor.Keypair
nodeID *ntor.NodeID
- seed *DrbgSeed
+ seed *DrbgSeed
iatObfuscation bool
closeDelayBytes int