Commit Graph

  • f0e8b4556e Eliminate some bounds check Andy Wang 2020-04-12 16:10:48 +0100
  • f05cc19dbc Assign connId only when needed Andy Wang 2020-04-12 12:51:00 +0100
  • 14787a7057 Implement stream WriteTo Andy Wang 2020-04-12 12:43:24 +0100
  • 334712c413 Regression: closing in the middle of a read will block Andy Wang 2020-04-12 12:28:00 +0100
  • 4351815a4a fix stale code Andy Wang 2020-04-12 11:35:24 +0100
  • a82a1a5627 writerTo Andy Wang 2020-04-12 11:34:04 +0100
  • 21cbe6ab5d Implement WriterTo for receive buffers Andy Wang 2020-04-12 11:33:11 +0100
  • 029da207ce Optimise datagramBuffer Andy Wang 2020-04-12 11:18:41 +0100
  • f90a008271 Skip uploading nil update Andy Wang 2020-04-12 01:56:33 +0100
  • 783d016a29 Fix a race on closing stream Andy Wang 2020-04-12 01:35:17 +0100
  • 58e0797578 Synchronise stream.Write Andy Wang 2020-04-12 01:34:21 +0100
  • 008fd8f0a3 Lazy allocation Andy Wang 2020-04-12 00:49:49 +0100
  • 8a76afabf7 Reduce the amount of goroutines in tests Andy Wang 2020-04-11 23:09:51 +0100
  • 17fd78b6c2 Use bbolt instead of bolt to fix go version compatibility issues Andy Wang 2020-04-11 23:09:29 +0100
  • 7db7842f81 go test wildcard Andy Wang 2020-04-11 22:52:29 +0100
  • df16ce5eb1 Travis Andy Wang 2020-04-11 22:48:16 +0100
  • 297ec2dfd5 Set up Travis CI Andy Wang 2020-04-11 22:46:57 +0100
  • a043168496 Bump dependency versions and tidy Andy Wang 2020-04-11 22:45:31 +0100
  • ce35a054ed Remove redundant tests Andy Wang 2020-04-11 22:43:29 +0100
  • 5d4e8b8d8d Refactor udp piping and add tests Andy Wang 2020-04-11 22:37:15 +0100
  • 9f413ff23a Fix multiconn benchmark Andy Wang 2020-04-11 19:03:44 +0100
  • 0ddfdb748f Bump dependency versions Andy Wang 2020-04-10 20:21:03 +0100
  • e4b45a55e3 Optimise AddRecordLayer Andy Wang 2020-04-10 19:09:17 +0100
  • e9243a2e9f Framing in Stream.Write to prevent silent short write Andy Wang 2020-04-10 18:48:36 +0100
  • 17d57d9369 Add benchmarks Andy Wang 2020-04-10 18:48:01 +0100
  • 8c9bab2a6f TLSConn.Write returns correct length Andy Wang 2020-04-10 16:15:23 +0100
  • 78b27c0705 Fix tests Andy Wang 2020-04-10 16:14:32 +0100
  • a51d45f41a Avoid unnecessary pass by pointer Andy Wang 2020-04-10 16:09:05 +0100
  • 2bf7df0eb0 Integration tests Andy Wang 2020-04-10 15:05:15 +0100
  • 0f66fec28e Remove impossible error Andy Wang 2020-04-10 14:11:01 +0100
  • 93cf6dec6e Export fields for testing Andy Wang 2020-04-10 14:09:48 +0100
  • d53b80208f Refactor for easier testing Andy Wang 2020-04-10 11:07:38 +0100
  • e5bda61587 Close connections properly Andy Wang 2020-04-09 23:52:08 +0100
  • 254b7152b6 Fix tests Andy Wang 2020-04-09 22:21:02 +0100
  • 444182f5bb Purge impurity Andy Wang 2020-04-09 22:11:12 +0100
  • bbc0752883 Minor code cleanup Andy Wang 2020-04-09 19:10:04 +0100
  • 86214a1df0 Implement stream SetReadDeadline Andy Wang 2020-04-09 18:56:17 +0100
  • e41394c83c Set frame size limit through multiplexer Andy Wang 2020-04-09 16:37:46 +0100
  • 780d607436 Use io.Copy for redir Andy Wang 2020-04-09 13:41:06 +0100
  • 77c33ff352 Fix redir null pointer Andy Wang 2020-04-09 13:37:33 +0100
  • 15f343db31 Refactor server configuration Andy Wang 2020-04-09 13:26:23 +0100
  • 97858197cd Move common types to its own package Andy Wang 2020-04-09 00:39:40 +0100
  • 140c8022f5 Unbreak server keygen Andy Wang 2020-04-09 00:37:59 +0100
  • 86095ba5e6 Refactor out Dialer Andy Wang 2020-04-09 00:34:02 +0100
  • 8cf7b60f4e Merge remote-tracking branch 'origin/master' Andy Wang 2020-04-08 22:17:32 +0100
  • 2400a33818 Remove extra imports Andy Wang 2020-04-08 22:17:08 +0100
  • 7e9fe952aa Move code around for clarity Andy Wang 2020-04-08 22:07:11 +0100
  • ec76ecfe71 Update tests Andy Wang 2020-04-08 21:47:31 +0100
  • 693544659f Refactor server transport Andy Wang 2020-04-08 21:37:21 +0100
  • 7bfae8accd Refactor client side transport (breaks server) Andy Wang 2020-04-08 20:53:09 +0100
  • 96845700f8 Add some integration tests for multiplex Andy Wang 2020-04-08 18:26:57 +0100
  • a461059b4a Change behaviour of stream.Write(nil) Andy Wang 2020-04-08 18:16:54 +0100
  • d3bc3b5a13 Use connutil in test Andy Wang 2020-04-08 16:41:39 +0100
  • dc2b1124cb move function out of util Andy Wang 2020-04-08 16:34:20 +0100
  • db9b848053 Simplify ReadTLS Andy Wang 2020-04-08 16:31:55 +0100
  • 43ae82ec0e Fix test, improve err message and fix nil interface casting Andy Wang 2020-04-08 15:58:46 +0100
  • 3bc59ff4b6 Fix tests Andy Wang 2020-04-08 15:17:33 +0100
  • 2dc7c6d6e1 Correct switchboard valve's scope Andy Wang 2020-04-08 15:15:08 +0100
  • e52daf1a39 Set defaults properly Andy Wang 2020-04-08 15:13:49 +0100
  • 545164a300 Make send/receive buffer sizes configurable Andy Wang 2020-04-08 15:07:35 +0100
  • 1de5045003 Use errors from io Andy Wang 2020-04-08 14:59:09 +0100
  • 01e5d15d20 Code cleanup Andy Wang 2020-04-08 12:18:20 +0100
  • 963dae829d Fix tests Andy Wang 2020-04-07 21:19:40 +0100
  • c1f3408c2c Make key lengths explicit Andy Wang 2020-04-07 21:15:28 +0100
  • 443aeecf5f Use cbeuw/connutil for connection testing Andy Wang 2020-04-07 20:59:32 +0100
  • e7963b9e24 Change wsAcceptor's name to wsOnceListener Andy Wang 2020-04-07 18:18:14 +0100
  • 853174bb14
    Merge pull request #108 from NeonSludge/master Andy Wang 2020-04-07 08:33:49 +0100
  • ba5d903539 Fix incorrect config field name for remote port in plugin mode Kirill Buev 2020-04-07 09:05:44 +0300
  • 8d375e3f9b remove redundant fields Andy Wang 2020-04-06 20:51:21 +0100
  • e8af6233c1 Fix test Andy Wang 2020-04-06 15:58:34 +0100
  • 285b966326 Fix server reply certificate length Andy Wang 2020-04-06 15:55:22 +0100
  • 6a83c58143 Refactor authentication pipeline Andy Wang 2020-04-06 15:24:18 +0100
  • a161409577 Rename a struct Andy Wang 2020-04-06 14:29:38 +0100
  • 903a413afc Update test Andy Wang 2020-04-06 13:14:11 +0100
  • 25e41d0941 Allow UDP option to be set in both commandline and json Andy Wang 2020-04-06 13:11:19 +0100
  • b2660a9f88 Merge branch 'master' of https://github.com/cbeuw/Cloak Andy Wang 2020-04-06 13:07:48 +0100
  • a163f066a6 Refactor client config Andy Wang 2020-04-06 13:07:16 +0100
  • 402cfc9e25 Logging for silent connections Andy Wang 2020-04-05 01:15:45 +0100
  • 8d84ebd145 Code styles Andy Wang 2020-04-05 00:56:43 +0100
  • dc262f7ca5 actually change the connId of a stream upon new assignment in send Andy Wang 2020-04-05 00:52:06 +0100
  • e9afae72f0 better stream closing error message Andy Wang 2020-04-05 00:51:28 +0100
  • 6d75aaff01 fix return shadowing Andy Wang 2020-04-05 00:39:59 +0100
  • 9f70e48493 Update README.md to mention correct syntax of ProxyBook, StreamTimeout, and KeepAlive config keys. notsure2 2020-04-04 18:33:55 +0200
  • 9bcc43e0f7 Update README.md to mention correct syntax of ProxyBook, StreamTimeout, and KeepAlive config keys. notsure2 2020-04-04 18:33:55 +0200
  • bd231f274e Fix keepalive client ssv parsing. notsure2 2020-04-04 17:34:38 +0200
  • 4942988ce7 Fix keepalive client ssv parsing. notsure2 2020-04-04 17:34:38 +0200
  • e4da349aa0 Add websocket auth test Andy Wang 2020-04-04 16:11:02 +0100
  • 5e1931a11c Ineffectual assignments Andy Wang 2020-04-04 16:10:43 +0100
  • 35236b27d1 Fix: server was timing out response from the proxy instead of the request from the client. notsure2 2020-04-04 16:39:50 +0200
  • 08446d6a14 Fix: server was timing out response from the proxy instead of the request from the client. notsure2 2020-04-04 16:39:50 +0200
  • 850f45d66f Remove an unnecessary fatal Andy Wang 2020-04-04 15:34:28 +0100
  • 2de034ec92 Make keepalive optional on client -> server and server -> proxy connections. Use KeepAlive value in config (seconds). notsure2 2019-12-09 18:12:47 +0200
  • 6b973045d5 Refactor verbosity flag parsing Andy Wang 2020-04-04 15:29:06 +0100
  • 7c315bf7da Make keepalive optional on client -> server and server -> proxy connections. Use KeepAlive value in config (seconds). notsure2 2019-12-09 18:12:47 +0200
  • efbd7bb835 Merge branch 'master' of https://github.com/cbeuw/Cloak Andy Wang 2020-04-04 15:18:54 +0100
  • d4ac2a2cf5 Accept log level flag even when started in shadowsocks mode. notsure2 2020-03-28 23:10:45 +0200
  • 42d3871390 Merge branch 'master' of https://github.com/cbeuw/Cloak Andy Wang 2020-04-04 14:37:58 +0100
  • 192f68fd76 add go sum Andy Wang 2020-04-04 14:37:34 +0100
  • e2c234fb76 Add go.sum file. notsure2 2020-03-28 23:12:33 +0200
  • d6b701af0a Accept log level flag even when started in shadowsocks mode. notsure2 2020-03-28 23:10:45 +0200