Commit Graph

158 Commits (master)

Author SHA1 Message Date
name e696b18187 format using goimports 1 year ago
Selim ae14e28999
ServerName rotation (#158)
* inital servername rotation

* Move MockDomainList to LocalConnConfig as the list doesn't need to be sent to the remote

* Use CSPRNG to pick the next candidate of MockDomains

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
3 years ago
Andy Wang 4a2eac51fe
Cleanup some tests using testify/assert 3 years ago
Andy Wang 57bb437802
Log timestamp 3 years ago
Andy Wang 21bcb53062
Human friendly key and uid generators 3 years ago
不确定 cfbf0dfcb6
Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode. (#145)
* Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode.

- In case of TCP, don't open the session in the listener accept thread. This
  causes resource exhaustion of the tcp listener backlog queue in case of internet
  connection disruption or timeout.

- In case of UDP, don't create a new session for every UDP packet.

* Fix race in integration test.

* Fix race condition in session maker

* Code style improvements

* Explicit session.Close() call is indeed needed

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
3 years ago
notsure2 caca33a1a5 Respect user choice of ProxyMethod in shadowsocks plugin mode. 3 years ago
Andy Wang 8b0a7425f8 Add tests for parsing shadowsocks binding addresses 4 years ago
Andy Wang afbc87162c Extract address processing functions 4 years ago
Andy Wang c6d6f40021 Format Android protector C code 4 years ago
Andy Wang 3f3259d4d3 MakeSession no longer needs to know if the Session should be admin 4 years ago
Andy Wang f96925982f Rename SplitConfigs to ProcessRawConfig to better reflect its behaviour 4 years ago
Andy Wang 9887649b88 Refactor Singleplexing 4 years ago
Andy Wang 0b217ddb07 Linting 4 years ago
notsure2 dab137dbd7 Support session per connection mode (like GoQuiet) when NumConn = 0. 4 years ago
不确定 aff53484eb
Accept and ignore 2 parameters passed by shadowsocks-android in shadowsocks plugin mode. (#115) 4 years ago
Andy Wang 5cbc24817d Acceptor function 4 years ago
Andy Wang 4a81683e44 Code cleanup and move stuff around 4 years ago
Andy Wang 5d4e8b8d8d Refactor udp piping and add tests 4 years ago
Andy Wang d53b80208f Refactor for easier testing 4 years ago
Andy Wang 254b7152b6 Fix tests 4 years ago
Andy Wang 444182f5bb Purge impurity 4 years ago
Andy Wang 15f343db31 Refactor server configuration 4 years ago
Andy Wang 140c8022f5 Unbreak server keygen 4 years ago
Andy Wang 86095ba5e6 Refactor out Dialer 4 years ago
Andy Wang 8cf7b60f4e Merge remote-tracking branch 'origin/master' 4 years ago
Andy Wang 7e9fe952aa Move code around for clarity 4 years ago
Andy Wang 693544659f Refactor server transport 4 years ago
Andy Wang 545164a300 Make send/receive buffer sizes configurable 4 years ago
Andy Wang 01e5d15d20 Code cleanup 4 years ago
Andy Wang c1f3408c2c Make key lengths explicit 4 years ago
Kirill Buev ba5d903539 Fix incorrect config field name for remote port in plugin mode 4 years ago
Andy Wang 6a83c58143 Refactor authentication pipeline 4 years ago
Andy Wang 25e41d0941 Allow UDP option to be set in both commandline and json 4 years ago
Andy Wang a163f066a6 Refactor client config 4 years ago
Andy Wang 402cfc9e25 Logging for silent connections 4 years ago
Andy Wang 5e1931a11c Ineffectual assignments 4 years ago
notsure2 35236b27d1 Fix: server was timing out response from the proxy instead of the request from the client. 4 years ago
Andy Wang 850f45d66f Remove an unnecessary fatal 4 years ago
notsure2 2de034ec92 Make keepalive optional on client -> server and server -> proxy connections. Use KeepAlive value in config (seconds). 4 years ago
Andy Wang 6b973045d5 Refactor verbosity flag parsing 4 years ago
notsure2 d4ac2a2cf5 Accept log level flag even when started in shadowsocks mode. 4 years ago
Andy Wang 2327420f75 Allow remote host to be set in the client config file 4 years ago
Andy Wang d482661494 Fix #101 by concatenating IPv6 ports correctly 4 years ago
Andy Wang 517a6d6e57 Handle error and retry for Crypto.rand 4 years ago
Andy Wang 2acc174a05 Update goWeb with new state fields 4 years ago
Andy Wang c26be98e79 Use sync.Map in multiplex instead of manual locks 5 years ago
Andy Wang 52720ca52f RedirAddr backward compatibility 5 years ago
Andy Wang 8a6f6b6088 Minor error prompt and listen to :80 and :443 by default 5 years ago
Andy Wang 63f3b4a89f Allow server to listen on multiple ports 5 years ago