Commit Graph

8 Commits (557e7468150dddc627113f790ecf921dd4529c59)

Author SHA1 Message Date
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