Commit Graph

16 Commits (19f34317ba024cfcf0061ff7587210b7be8fa2af)

Author SHA1 Message Date
Yawning Angel 7c37109c48 Add support for a log scrubber and log a session id.
This fixes #6.
11 years ago
Yawning Angel b50a8bdf24 Finish adding godoc comments to all public interfaces. 11 years ago
Yawning Angel 676e0428e7 Allow logging to be disabled (default).
Part of #6, still need to make logs nicer.
11 years ago
Yawning Angel 7709069617 Send the DRBG seed as a packetTypePrngSeed post server handshake.
This fixes #3, and brings the code to be on par with the delopyed
versions of ScrambleSuit in terms of features.
11 years ago
Yawning Angel 6f875c99a9 Load the drbg-seed from the ServerTransportOptions args.
This also adds the drgb-seed option to the `-gen` obfs4proxy output.
11 years ago
Yawning Angel b9e3aedfb1 Make the output from "-gen" be more useful. 11 years ago
Yawning Angel 50cc180084 Use os.MkdirAll() for creating the pt state directory. 11 years ago
Yawning Angel 8e552dbd48 Remove a newline to make godoc work (No functional changes). 11 years ago
Yawning Angel 64212e1029 Add vim modelines to some files (No functional changes). 11 years ago
Yawning Angel 8daf42a13e Fix up import. 11 years ago
Yawning Angel d2b2e383fd Fix copyLoop to break out the other goroutine on graceful exit.
This should fix sockets getting stuck in CLOSE_WAIT.
11 years ago
Yawning Angel 51a8dd5a86 Fix logging again.
On second thought instead of using log.Panicf(), panic() and do the
logging with recover().  This somewhat centralizes logging in
obfs4proxy, which will be easier to change when I invariably decide to
do logging differently in the future.
11 years ago
Yawning Angel c3acefb7e5 Log and propagate errors between the 2 goroutines in copyLoop.
This fixes #1.
11 years ago
Yawning Angel c2f1e8ecb7 Clean up the logging a bit. 11 years ago
Yawning Angel 68c48cb383 Run go fmt on obfs4proxy.go (No functional changes). 11 years ago
Yawning Angel 8e14ed44ad Move to a unified client/server binary, and fix bugs.
* The old and the busted: obfs4-[client,server].
 * The new hotness: obfs4client.
 * Add obfs4.ServerHandshake() that servers need to call after a
   successful return from Accept().  This allows implementations to
   move the handshake into a goroutine or whatever.
11 years ago