Commit Graph

349 Commits

Author SHA1 Message Date
Andy Wang
903a413afc Update test 2020-04-06 13:14:11 +01:00
Andy Wang
25e41d0941 Allow UDP option to be set in both commandline and json 2020-04-06 13:11:19 +01:00
Andy Wang
b2660a9f88 Merge branch 'master' of https://github.com/cbeuw/Cloak
 Conflicts:
	internal/client/state.go
2020-04-06 13:07:48 +01:00
Andy Wang
a163f066a6 Refactor client config 2020-04-06 13:07:16 +01:00
Andy Wang
402cfc9e25 Logging for silent connections 2020-04-05 01:15:45 +01:00
Andy Wang
8d84ebd145 Code styles 2020-04-05 00:56:43 +01:00
Andy Wang
dc262f7ca5 actually change the connId of a stream upon new assignment in send 2020-04-05 00:52:06 +01:00
Andy Wang
e9afae72f0 better stream closing error message 2020-04-05 00:51:28 +01:00
Andy Wang
6d75aaff01 fix return shadowing 2020-04-05 00:39:59 +01:00
notsure2
9f70e48493 Update README.md to mention correct syntax of ProxyBook, StreamTimeout, and KeepAlive config keys. 2020-04-04 23:49:21 +01:00
notsure2
bd231f274e Fix keepalive client ssv parsing. 2020-04-04 16:37:00 +01:00
Andy Wang
e4da349aa0 Add websocket auth test 2020-04-04 16:11:02 +01:00
Andy Wang
5e1931a11c Ineffectual assignments 2020-04-04 16:10:43 +01:00
notsure2
35236b27d1 Fix: server was timing out response from the proxy instead of the request from the client. 2020-04-04 15:44:45 +01:00
Andy Wang
850f45d66f Remove an unnecessary fatal 2020-04-04 15:34:28 +01:00
notsure2
2de034ec92 Make keepalive optional on client -> server and server -> proxy connections. Use KeepAlive value in config (seconds). 2020-04-04 15:32:19 +01:00
Andy Wang
6b973045d5 Refactor verbosity flag parsing 2020-04-04 15:29:06 +01:00
Andy Wang
efbd7bb835 Merge branch 'master' of https://github.com/cbeuw/Cloak 2020-04-04 15:18:54 +01:00
notsure2
d4ac2a2cf5 Accept log level flag even when started in shadowsocks mode. 2020-04-04 15:18:25 +01:00
Andy Wang
42d3871390 Merge branch 'master' of https://github.com/cbeuw/Cloak
 Conflicts:
	go.sum
2020-04-04 14:37:58 +01:00
Andy Wang
192f68fd76 add go sum 2020-04-04 14:37:34 +01:00
notsure2
e2c234fb76 Add go.sum file. 2020-04-04 14:36:16 +01:00
Andy Wang
2327420f75 Allow remote host to be set in the client config file 2020-04-04 00:43:06 +01:00
Andy Wang
d482661494 Fix #101 by concatenating IPv6 ports correctly 2020-04-03 23:39:48 +01:00
Andy Wang
d05809f2a6 Fix logging of transport 2020-04-03 23:37:09 +01:00
Andy Wang
766c27a129 Refactor if to switch case 2020-04-03 22:46:07 +01:00
Andy Wang
75ab568cda Merge branch 'master' of https://github.com/cbeuw/Cloak 2020-04-03 22:44:39 +01:00
Andy Wang
84bccd7710
Update README.md 2020-03-30 21:42:44 +01:00
Andy Wang
85e95de69c variable cert length in TLS server response 2020-03-16 11:39:27 +00:00
Andy Wang
e33afb258a extract util testing function 2020-03-16 11:38:30 +00:00
Andy Wang
47410dbb97 add comments 2020-03-15 23:56:45 +00:00
Andy Wang
db8dd19c9d fix broken benchmarks 2020-03-15 23:55:56 +00:00
beans
23082aff4f Allow RemotePort to be optionally set in JSON. If it's not set in JSON, Cloak falls back to SS_REMOTE_PORT in SS mode, or the -p argument in standalone 2020-02-14 21:57:57 +00:00
Andy Wang
517a6d6e57 Handle error and retry for Crypto.rand 2020-02-01 23:46:46 +00:00
Andy Wang
e714dc61a8 Add a test for server touchstone 2020-01-25 10:20:11 +00:00
Andy Wang
bc5ce842a0 Refactor makeAuthenticationPayload to allow easier tests 2020-01-25 10:19:45 +00:00
Andy Wang
abc39e4e90 Refactor authentication data representations 2020-01-24 16:44:29 +00:00
Andy Wang
fa1c109d90 Make authentication info arrays 2020-01-24 15:13:26 +00:00
Andy Wang
fe8b2d78ef Change authenticationInfo structure 2020-01-24 14:38:41 +00:00
Andy Wang
13b66f6fef Remove redundant code 2020-01-24 13:30:17 +00:00
Andy Wang
f90ad52455 Add default stream timeout value to client 2020-01-23 20:31:08 +00:00
Andy Wang
6f34229aa0 Make and add stream upon reception of all new streamIDs even if they are closing 2020-01-23 20:30:31 +00:00
Andy Wang
39e54bae6c Fix transport null pointer 2020-01-22 22:27:19 +00:00
Andy Wang
99fa812594 Fix pickRandConn bad loop 2020-01-22 22:17:18 +00:00
Andy Wang
3f5fdae284 Close session immediately after receiving signal 2020-01-22 21:30:30 +00:00
Andy Wang
d65aee725a Improve stream closing logic and add tests 2020-01-22 21:12:32 +00:00
Andy Wang
af5c8a381f Make a test streamline instead of modular 2020-01-22 19:33:53 +00:00
Andy Wang
3d3d06ec96 Fix tests 2020-01-22 18:40:03 +00:00
Andy Wang
74a70a3113 Refactor Transport and add tests 2020-01-22 18:37:01 +00:00
Andy Wang
e7e4cd5726 Refactor frame reception processor 2020-01-09 10:22:40 +00:00