Commit Graph

181 Commits (master)

Author SHA1 Message Date
Andy Wang dc2e83f75f
Move to common.RandInt 2 months ago
Andy Wang b3ec1ab3bc
Make server respond with a TLS 1.3 cipher suite 4 months ago
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 67dba8c8fa
Return empty slices instead of nil for ListAllUsers 2 years ago
Andy Wang f27889af11
Allow partial json to be POSTed to admin/user/{UID} for only updating select fields 3 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 de0daac123
Update deprecated curve25519 functions and defend against low-order point attacks 4 years ago
Andy Wang 0d3f8dd27f
Allow DatabasePath to be empty if user info database is never used 4 years ago
Andy Wang 2e36627a12
Make AdminUID optional and implement better validation on empty config fields 4 years ago
Andy Wang d5a003d6d6
Remove StreamTimeout from server completely 4 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 095471103a
Fix timestamp tests 4 years ago
不确定 b7e7bfb314
Make sure times are UTC and correctly subtract the timestamp window from the server time. (#134) 4 years ago
Andy Wang 0f6e0d37b5 Rename constants to camel case 4 years ago
Andy Wang 54bca721e8 Add tests for API handlers 4 years ago
Andy Wang 1ec11c175a POST to /admin/users/{UID} will POST json string directly, rather than being encoded in FormData 4 years ago
Andy Wang c7c3f7706d Refactor for clarity and add comments 4 years ago
Andy Wang 86e2935607 Use a pre-made buffer for TLSConn.Write 4 years ago
Andy Wang a86899f007 Improve comments 4 years ago
Andy Wang e092e280c1 Refactor dispatcher.go 4 years ago
Andy Wang d93ac48b85 Add build directives to fuzzing functions 4 years ago
Andy Wang b2dbe4c654 Add fuzzer 4 years ago
Andy Wang c17cb034e3 Wrap decryption error 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 2bb102a5b6 Use byte literals instead of decoding hex 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 2c995962ed Fix spelling mistake 4 years ago
Andy Wang 5984fde09f Better logging for user activation and termination 4 years ago
Andy Wang 13c1c3705b Fix a race in test 4 years ago
Andy Wang b9c3e64750 Add tests 4 years ago
Andy Wang 72d67beea3 Make usageQueue update interval a constant 4 years ago
Andy Wang 2e945cc416 Fix a deadlock on terminating user 4 years ago
Andy Wang e508ade14b Fix test 4 years ago
Andy Wang acc0a1a2dd Fix credit not updating on termination 4 years ago
Andy Wang 6ae3c27320 Add tests and make SessionCap explicitly int32 4 years ago
Andy Wang 5baac79e56 Avoid null ProxyBook map. Fixes #111 4 years ago
Andy Wang 69a73ecfc0 Refactor usermanager 4 years ago
Andy Wang d2b17fc9a2 Fix a deadlock 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 f90a008271 Skip uploading nil update 4 years ago
Andy Wang 8a76afabf7 Reduce the amount of goroutines in tests 4 years ago
Andy Wang 17fd78b6c2 Use bbolt instead of bolt to fix go version compatibility issues 4 years ago
Andy Wang 2bf7df0eb0 Integration tests 4 years ago