Commit Graph

394 Commits

Author SHA1 Message Date
Micooz
5aa1cfc755 src: refine api interfaces 2017-10-21 11:59:00 +08:00
Micooz
889b2bd6e6 src: refine api interfaces 2017-10-21 11:57:58 +08:00
Micooz
ff03246e31
core: fix lint error 2017-10-20 11:03:21 +08:00
Micooz
a81eea0401
presets: fix base-auth 2017-10-20 11:03:02 +08:00
Micooz
e0a51ab7e8
presets: deprecated base-auth-stream and base-with-padding, add base-auth 2017-10-20 10:56:03 +08:00
Micooz
2ad0b4fad0
core: move middleware creation from relay to pipe 2017-10-20 10:53:11 +08:00
Micooz
129b515167 presets: allow to use external preset 2017-10-19 21:32:40 +08:00
Micooz
39521ae8f8
transports: pause inbound receiving before outbound connected to remote 2017-10-19 15:23:33 +08:00
Micooz
d7883321f3
src: rename constants
- MIDDLEWARE_DIRECTION_UPWARD -> PIPE_ENCODE
- MIDDLEWARE_DIRECTION_DOWNWARD -> PIPE_DECODE
2017-10-19 11:19:32 +08:00
Micooz
434983d01f
transport: throttle receiving data to reduce memory grow when using websocket 2017-10-19 11:05:45 +08:00
Micooz
f1a555f050
presets: add CONNECTED_TO_REMOTE action 2017-10-19 11:04:23 +08:00
Micooz
5da3bac7d3
proxies: display error message when got invalid requests 2017-10-18 18:02:56 +08:00
Micooz
cd15044aa4
core: disable json output to log files 2017-10-18 13:54:31 +08:00
Micooz
95e6b1b842
presets: fix preset "ss-base" fail to process: invalid length: 0 2017-10-17 10:20:15 +08:00
Micooz
3501b877ab
test: add tests for v2ray-vmess.js, defs.js and middleware.js 2017-10-17 10:14:17 +08:00
Micooz
5b3e1518d4
core: throw an error rather than process.exit() when createMiddlware() 2017-10-17 10:13:31 +08:00
Micooz
6f12dcb2ba transport: fix a null pointer bug in tcp.js 2017-10-15 12:19:51 +08:00
Micooz
34acc66a1d presets: add chacha20-poly1305 security support for v2ray-vmess 2017-10-15 12:17:42 +08:00
Micooz
0c297c9a92 core: catch errors throw from presets at pipe() 2017-10-15 12:14:56 +08:00
Micooz
ba16b706d1 presets: add chacha20-* support for ss-aead-cipher
- chacha20-poly1305
- chacha20-ietf-poly1305
- xchacha20-ietf-poly1305
2017-10-14 22:55:13 +08:00
Micooz
801dd69867 transports: log host and resolved ip separately 2017-10-14 22:51:43 +08:00
Micooz
8c87a360d5 proxies: unify host type in socks.js 2017-10-14 22:50:36 +08:00
Micooz
daf9ba8927 proxies: add tcp.js 2017-10-14 22:48:06 +08:00
Micooz
6200a9ce9a core: add "dstaddr" option to config.js 2017-10-14 22:47:09 +08:00
Micooz
42c7ea8ec2 core: refine hub, pass proxyRequest to relay 2017-10-14 22:45:47 +08:00
Micooz
d26b63f59a presets: remove tunnel 2017-10-14 22:28:06 +08:00
Micooz
a816d60968 presets: remove exp-compress 2017-10-14 19:23:28 +08:00
Micooz
1b17e08288 presets: refine ss-aead-cipher and ss-stream-cipher 2017-10-14 12:26:25 +08:00
Micooz
8294d87bf8
core,test: support "service" option in config 2017-10-13 16:56:49 +08:00
Micooz
92c20bf61c
presets: only watch file in non-test environment 2017-10-13 16:23:28 +08:00
Micooz
d47f7b1337
core: universal service start of hub 2017-10-13 15:51:13 +08:00
Micooz
4459b44e84
bin,src: refine module exports 2017-10-13 15:48:09 +08:00
Micooz
d20443bfc7
transports: change "websocket" to "ws" 2017-10-13 15:43:25 +08:00
Micooz
30288a51f5
transport: destroy socket when "end" as well 2017-10-13 15:42:47 +08:00
Micooz
116c1ff9de
utils: remove problematic parseURI() 2017-10-13 15:41:10 +08:00
Micooz
414bfb86d5
core,presets: remove proxy preset 2017-10-13 15:39:28 +08:00
Micooz
f206be69e3
proxies: a big refactor, use more robust, lightweight and efficient approach 2017-10-13 15:37:42 +08:00
Micooz
53c6681084
transports: check websocket writable before send 2017-10-09 12:56:43 +08:00
Micooz
d73d9fcf44 core: refactor pipe, add pre-hook, improve pipe performance 2017-10-08 11:30:05 +08:00
Micooz
ef8ff9aa48 utils: add generateMutexId() 2017-10-08 11:21:19 +08:00
Micooz
21f4a33c4b core: print logs when load cert.pem or key.pem 2017-10-07 17:02:12 +08:00
Micooz
55d18e7199 core: drop Object.values to fix compatibility for node v6.x 2017-10-07 16:59:01 +08:00
Micooz
835ade4750 core: normalize log output of hub.js 2017-10-07 15:40:45 +08:00
Micooz
373feea909
transports: sync return context when _connect() 2017-09-28 14:27:10 +08:00
Micooz
09dc24da9e
transports: extract tls relevant logic from tcp.js to tls.js 2017-09-27 10:50:57 +08:00
Micooz
1d676a04a1
transports: refine index.js 2017-09-26 11:09:39 +08:00
Micooz
68a595c426
core,bin: add "log_max_days" option 2017-09-26 11:08:55 +08:00
Micooz
708926c72f
core: should clear cache after switch to another server 2017-09-21 12:48:29 +08:00
Micooz
8e72dec75c
presets: fix access bug to static members 2017-09-20 14:22:26 +08:00
Micooz
260c89dda6
presets: two presets are ready for production
exp-base-auth-stream -> base-auth-stream
exp-base-with-padding -> base-with-padding
2017-09-20 13:33:42 +08:00