Commit Graph

5 Commits

Author SHA1 Message Date
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.
2014-05-12 23:04:39 +00:00
Yawning Angel
c3acefb7e5 Log and propagate errors between the 2 goroutines in copyLoop.
This fixes #1.
2014-05-12 05:08:04 +00:00
Yawning Angel
c2f1e8ecb7 Clean up the logging a bit. 2014-05-12 00:25:40 +00:00
Yawning Angel
68c48cb383 Run go fmt on obfs4proxy.go (No functional changes). 2014-05-12 00:06:52 +00:00
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.
2014-05-12 00:02:24 +00:00