summaryrefslogtreecommitdiff
path: root/packet.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-15 19:08:03 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-15 19:08:03 +0000
commit6f875c99a9047d8a04a9ac2db9c6305dee3e2901 (patch)
treebcf25fc6f780c5138f800cb194b32c5e7229bc59 /packet.go
parentf1b1dcdb106c00fef1acffe04caaeabb3a34239b (diff)
Load the drbg-seed from the ServerTransportOptions args.
This also adds the drgb-seed option to the `-gen` obfs4proxy output.
Diffstat (limited to 'packet.go')
-rw-r--r--packet.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet.go b/packet.go
index 2528a53..f1c0ab1 100644
--- a/packet.go
+++ b/packet.go
@@ -173,9 +173,9 @@ func (c *Obfs4Conn) consumeFramedPackets(w io.Writer) (n int, err error) {
}
case packetTypePrngSeed:
// Only regenerate the distribution if we are the client.
- if len(payload) >= drbgSeedLength && !c.isServer {
- var seed *drbgSeed
- seed, err = drbgSeedFromBytes(payload[:drbgSeedLength])
+ if len(payload) >= DrbgSeedLength && !c.isServer {
+ var seed *DrbgSeed
+ seed, err = DrbgSeedFromBytes(payload[:DrbgSeedLength])
if err != nil {
break
}