Commit Graph

355 Commits

Author SHA1 Message Date
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
Micooz
793835d570
presets: refactor exp-compress, expose "threshold" and "options" 2017-09-20 11:48:01 +08:00
Micooz
17e621237f presets: typo 2017-09-19 22:29:49 +08:00
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