Commit Graph

35 Commits

Author SHA1 Message Date
Micooz
1e61c6dab0 presets: export * from defs.js as well 2018-07-07 10:21:15 +08:00
Micooz
b4abe01b20 presets: refactor index.js 2018-06-02 09:55:11 +08:00
Micooz
133bf07ffc presets: remove actions.js, move to src/constants.js 2018-05-04 22:08:36 +08:00
Micooz
18a91d3b61 presets,test: remove "auto-conf" preset 2018-04-15 21:45:10 +08:00
Micooz
d1dedef8e6 presets: use onInitTargetAddress() instead of onNotified() to get target address 2018-04-15 19:59:39 +08:00
Micooz
6239d4cedd core,presets: move tracker preset to core 2018-02-18 17:44:12 +08:00
Micooz
48d6e777dd *: reformat code 2018-02-17 12:19:31 +08:00
Micooz
4b7c2e091c src,test: isolate config among presets 2018-02-16 17:01:36 +08:00
Micooz Lee
80a6e69653
Add multiplexing support (#94)
* core,presets,transports: add initial mux support

* core,presets: holy shit

* core,transports: fix fix

* core: some fix to multiplexer

* still not working, too complex

* transports: add mux

* core: pass "extraArgs" as the second parameter during piping

* src: first working version of mux

* core,presets: properly close sub connection from client

* core/multiplexer: fix stuck at the second connection

* core/multiplexer: split class into MuxClient and MuxServer

* core/multiplexer: pick a random mux relay to transfer encoded data on server side

* core,transports: remove "mux" transport and make mux on TLS work

* presets/tracker: only dump result when preset destroyed

* lint: fix

* core: bring preparePresets() to module scope

* transports/tcp: fix inbound destroy behaviour for mux

* utils: fix getRandomInt()

* core/multiplexer: fix getRandomMuxRelay()

* core/multiplexer: distinguish relay self-close and protocol(mux)-close

* test: add test for "mux"

* transports/websocket: prevent calling "on()" on null this._socket

* presets: add class IPresetAddressing

* core: wrap mux protocol inside custom protocol stack

* core: pass remoteInfo to new Relay() to correct remote address in log

* core: fix bugs and improve stability

* src: add/remove TODOs

* core/relay: store remoteInfo rather than context

* core/relay: fix a bug

* docs: update
2017-12-25 16:42:01 +08:00
Micooz
733aa9e4b2
presets,test: remove base-auth-stream and base-with-padding 2017-12-19 11:24:21 +08:00
Micooz
1bd4cf5276
presets: monkey patch onInit() and checkParams() 2017-11-24 14:22:37 +08:00
Micooz
6424498fad
core: display a warning when provide redundant presets 2017-11-09 15:49:37 +08:00
Micooz
7956e3fded
presets: add auto-conf.js 2017-11-09 11:05:53 +08:00
Micooz
6ad41f8c43
presets: add "ssr-auth-chain-a" and "ssr-auth-chain-b" 2017-11-03 15:45:41 +08:00
Micooz
0cef3d3a0b
presets: refine ssr-auth-aes128-xxx
- make ssr-auth-aes128 as base class
- explicit add ssr-auth-aes128-md5 and ssr-auth-aes128-sha1
2017-11-01 11:42:23 +08:00
Micooz
1ac146668e presets: add ssr-auth-aes128.js 2017-10-31 22:50:06 +08:00
Micooz
889b2bd6e6 src: refine api interfaces 2017-10-21 11:57:58 +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
129b515167 presets: allow to use external preset 2017-10-19 21:32:40 +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
414bfb86d5
core,presets: remove proxy preset 2017-10-13 15:39:28 +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
Micooz
e10ae03f74
presets: add v2ray-vmess support 2017-09-13 15:02:02 +08:00
Micooz
d7e348b592
presets: improve performance and reduce memory usage 2017-09-08 10:47:36 +08:00
Micooz
47e992d03b
presets: adjust presets order 2017-09-05 17:55:37 +08:00
Micooz
17d1e02abb
presets: add access-control.js 2017-09-05 14:34:19 +08:00
Micooz
f439713f17 presets: export modules from defs.js 2017-09-02 11:24:34 +08:00
Micooz
654b2f9a39 presets: add obfs-random-padding.js 2017-08-28 22:41:45 +08:00
Micooz
479afa070a
presets: add exp-compress.js 2017-08-28 16:54:46 +08:00
Micooz
c5a179456e presets: add tracker.js 2017-08-19 19:49:01 +08:00
Micooz
26fbce6b44 presets: extract tunnel mode from "proxy" to "tunnel"
close: #91
2017-08-18 15:31:55 +08:00
Micooz
bf8450b0c5 core,utils: move logger to utils 2017-08-18 15:15:57 +08:00
Micooz
b9fd4cb71c presets: export preset names in index.js 2017-08-16 12:56:18 +08:00
Micooz
e09804b481 presets: add index.js 2017-08-16 11:47:53 +08:00