Commit Graph

322 Commits

Author SHA1 Message Date
Micooz
c52ebbae9b
core,presets: remove PRESET_INIT, add static onInit() to IPreset 2017-09-08 10:41:25 +08:00
Micooz
4db9bbb3b9
utils: add clear() for AdvancedBuffer 2017-09-08 10:38:45 +08:00
Micooz
8e8591840d
core,presets: add a new interface next() to IPreset 2017-09-07 17:11:37 +08:00
Micooz
47e992d03b
presets: adjust presets order 2017-09-05 17:55:37 +08:00
Micooz
730db0f29f
core: remove unnessarty check and bring "redirect" back 2017-09-05 14:36:11 +08:00
Micooz
d938eda05b
core: extract onPipeNotified() from relay.hs to action-handler.js 2017-09-05 14:35:19 +08:00
Micooz
17d1e02abb
presets: add access-control.js 2017-09-05 14:34:19 +08:00
Micooz
94be72599b
docs,bin,src: remove behaviours 2017-09-05 14:32:40 +08:00
Micooz
d86b8220f6
utils: fix isValidPort() 2017-09-05 09:52:43 +08:00
Micooz
07a28346bc
core,presets: add 4 actions for traffic control 2017-09-05 09:52:18 +08:00
Micooz
2fd99f6303 presets: check data length after verify for two aead ciphers 2017-09-03 17:16:18 +08:00
Micooz
53577c2fda core: implement PRESET_CLOSE_CONNECTION in relay 2017-09-03 12:23:17 +08:00
Micooz
f921ce9415 core: ignore action emitter itself when broadcast 2017-09-03 12:22:25 +08:00
Micooz
d904b287aa presets: add convenience methods this.broadcast(...) and this.fail(...) 2017-09-02 22:09:51 +08:00
Micooz
a3cab733bd core: refactor pipe.js 2017-09-02 21:31:27 +08:00
Micooz
93ab9d0390 core: refactor middleware.js 2017-09-02 21:30:18 +08:00
Micooz
f439713f17 presets: export modules from defs.js 2017-09-02 11:24:34 +08:00
Micooz
2fc59687b1 utils: fix a type check bug in isValidPort() 2017-09-02 11:23:13 +08:00
Micooz
fff076711f
*: fix mode 2017-08-31 18:01:28 +08:00
Micooz
2a3e645f14
presets: refactor stats.js using IPresetStatic 2017-08-31 15:57:57 +08:00
Micooz
eafa5e9aff
presets: refine parameters check 2017-08-31 15:31:44 +08:00
Micooz
bae4be4452
core,test: refine config.js 2017-08-31 14:53:45 +08:00
Micooz
8850fd0850
presets: add static method checkParams() to IPreset 2017-08-31 14:42:10 +08:00
Micooz
5764a4f2cc
presets,core: add IPresetStatic class, remove checkMiddleware() 2017-08-31 14:41:11 +08:00
Micooz
f88e107f37
presets: change SOCKET_CONNECT_TO_REMOTE to CONNECT_TO_REMOTE 2017-08-31 13:01:34 +08:00
Micooz
b8bbf239ac
core: refactor "drain" event 2017-08-30 16:30:19 +08:00
Micooz
0c4aa5aeea
core,presets: replace PROCESSING_FAILED to PRESET_FAILED 2017-08-30 15:07:06 +08:00
Micooz
85342b7dd9
core,presets: add onDestroy() hook for presets 2017-08-30 14:25:56 +08:00
Micooz
49536e9814
presets: fix obfs-random-padding 2017-08-29 12:50:21 +08:00
Micooz
e4043ea1b2
utils: fix getRandomInt() 2017-08-29 11:35:54 +08:00
Micooz
14484038e6
docs: update presets 2017-08-29 11:06:22 +08:00
Micooz
a4b5ab0c05
presets: re-implement obfs-random-padding 2017-08-29 10:57:31 +08:00
Micooz
d974c2b4d1
utils: improve performance of advanced-buffer 2017-08-29 10:50:32 +08:00
Micooz
654b2f9a39 presets: add obfs-random-padding.js 2017-08-28 22:41:45 +08:00
Micooz
e9eca38110 presets: dump details when fail 2017-08-28 22:41:25 +08:00
Micooz
5f85be4b75 core: fix calling close() on null in hub.js 2017-08-28 22:40:30 +08:00
Micooz
ef704a692c presets: refine stats.js 2017-08-28 19:50:56 +08:00
Micooz
f68ee79319 ci: fix zlib constants for Node.js v6.x 2017-08-28 19:37:52 +08:00
Micooz
8a48e9b3b2
presets: fix stats.js 2017-08-28 18:05:25 +08:00
Micooz
499e23cb93
docs: update 2017-08-28 17:38:50 +08:00
Micooz
479afa070a
presets: add exp-compress.js 2017-08-28 16:54:46 +08:00
Micooz
86637782b4 core,bin: refine "transport" structure 2017-08-22 10:54:25 +08:00
Micooz
3ba4ad2a7e presets: fix host verify in exp-base-with-padding.js 2017-08-21 22:15:43 +08:00
Micooz
81a25e4c35 core: fix presets in relay.js 2017-08-21 22:15:02 +08:00
Micooz
0587fa1921 core: update tests for config.js 2017-08-21 21:09:55 +08:00
Micooz
82d240c582 core: refine tls config stuff 2017-08-21 21:09:39 +08:00
Micooz
e7de9bfb02 core: refactor Socket to Relay then support TLSSocket 2017-08-21 18:09:46 +08:00
Micooz
1ffb7800de utils: refine logger config/import 2017-08-20 22:01:30 +08:00
Micooz
f0207e61d7 behaviours: add tests 2017-08-20 19:55:58 +08:00
Micooz
7e1d7a703f core: add missing tests for config.js 2017-08-20 19:55:41 +08:00