Commit Graph

4 Commits (7a7b2af5165243f3f9611140cb75a341f7eb5ae8)

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.
10 years ago
Yawning Angel 9712aec73b Preliminary support padding, log on panic.
This adds preliminary support for data padding by adding another layer
of encapsulation inside each AEAD frame containing a type and length.
For now, data is still sent unpadded, but the infrastructure for
supporting it is mostly there.

Additionally, use log.Panic[f]() instead of panic through out the code
so that some panics are logged.
10 years ago
Yawning Angel e6a8d57a23 Remove a comment that I forgot to delete, no functional changes. 10 years ago
Yawning Angel ef38b844f9 Initial import. 10 years ago