Commit Graph

342 Commits

Author SHA1 Message Date
Micooz
3884f4d07c
core,transports: refactor tcp/tls relay, add websocket 2017-09-19 14:07:07 +08:00
Micooz
6d93761f09
presets/tracker: extract dump() method to global static function 2017-09-19 14:05:49 +08:00
Micooz
596c51db3d
core,test: deprecated __IS_TLS__ 2017-09-19 14:04:40 +08:00
Micooz
8436de0124 presets: fix "out of range" bug in v2ray-vmess 2017-09-18 22:52:01 +08:00
Micooz
464cf4e95c core: add _destroy property to pipe 2017-09-18 22:42:46 +08:00
Micooz
2581da27c9 core: print a verbose log when hit cache 2017-09-18 22:41:56 +08:00
Micooz
6cf69805e7
utils: fixed a performance regression of advanced-buffer 2017-09-14 17:21:47 +08:00
Micooz
eae044bade
presets: minor fixes 2017-09-14 13:43:41 +08:00
Micooz
b2778b0785
test: prepare e2e tests for presets 2017-09-13 17:02:24 +08:00
Micooz
b4758e73ed
utils: add missing unit tests 2017-09-13 16:11:06 +08:00
Micooz
03e33a2b6b
utils: refactor shake128() 2017-09-13 15:10:31 +08:00
Micooz
e10ae03f74
presets: add v2ray-vmess support 2017-09-13 15:02:02 +08:00
Micooz
ceeb47d945 presets: adapt utils 2017-09-12 22:23:01 +08:00
Micooz
14b1b02412 utils: more robust 2017-09-12 22:23:01 +08:00
Micooz
01e42411fb utils: split common into several modules 2017-09-12 22:23:01 +08:00
Micooz
15169212b8 core: fix typo in action-handler.js 2017-09-12 22:23:01 +08:00
Micooz
8848d603a2 core: refactor terminate() of hub 2017-09-12 22:23:01 +08:00
Micooz
91a94f3255
core: refine timeout event callback 2017-09-11 14:40:05 +08:00
Micooz
d7e348b592
presets: improve performance and reduce memory usage 2017-09-08 10:47:36 +08:00
Micooz
ca548603b7
core: refactor middleware, improve cache strategy 2017-09-08 10:44:15 +08:00
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