Commit Graph

26 Commits (e696b181876d7279e22c573d12a8b1f525c9616c)

Author SHA1 Message Date
name e696b18187 format using goimports 1 year ago
Andy Wang e157e73ade
Check proxy method after checking admin uid to allow admin to have an invalid but unused proxy method 2 years ago
Andy Wang 439b7f0eb3
Improve encapsulation 3 years ago
Andy Wang d1b05ee9e5
Add new encryption method option aes-128-gcm 3 years ago
Andy Wang 2e36627a12
Make AdminUID optional and implement better validation on empty config fields 3 years ago
不确定 e77fd4c446
Fix regression: termination of long downloads after StreamTimeout seconds (#141)
* Fix termination of long downloads after StreamTimeout seconds.

- Even if not broadcasting in a loop, we still need to update the read deadline.
- Don't enforce the timeout after the first data is written.

* When timeout no longer needs to be enforced, no need to schedule a broadcast.

* Fix Cloak client. Don't enforce read deadline after first read.

* Enforce StreamTimeout on the initial bytes sent by localConn only.

* Revert changes to multiplex module. Remove timeout from caller.
4 years ago
Andy Wang c7c3f7706d Refactor for clarity and add comments 4 years ago
Andy Wang e092e280c1 Refactor dispatcher.go 4 years ago
Andy Wang 0b217ddb07 Linting 4 years ago
Andy Wang de5c51d3e4 Better redir piping behaviour 4 years ago
Andy Wang 253ea94d2a Better and more explicit handling of first packet, reduces exposure of active probing 4 years ago
Andy Wang 98a7b731f3 Do not fatal when accept fails after 10 times 4 years ago
Andy Wang 95ae83d54d Accept retry delay. Prevent #120 4 years ago
Andy Wang 69a73ecfc0 Refactor usermanager 4 years ago
Andy Wang e202d8d03b Implement WriteTo and ReadFrom timeouts 4 years ago
Andy Wang 4a81683e44 Code cleanup and move stuff around 4 years ago
Andy Wang c8368bcc7e Implement stream ReadFrom (flimsy) 4 years ago
Andy Wang 2bf7df0eb0 Integration tests 4 years ago
Andy Wang d53b80208f Refactor for easier testing 4 years ago
Andy Wang e5bda61587 Close connections properly 4 years ago
Andy Wang 444182f5bb Purge impurity 4 years ago
Andy Wang 86214a1df0 Implement stream SetReadDeadline 4 years ago
Andy Wang e41394c83c Set frame size limit through multiplexer 4 years ago
Andy Wang 780d607436 Use io.Copy for redir 4 years ago
Andy Wang 86095ba5e6 Refactor out Dialer 4 years ago
Andy Wang 7e9fe952aa Move code around for clarity 4 years ago