Commit Graph

329 Commits

Author SHA1 Message Date
Micooz
8198e3d06e src: weakly dependent on http2 module 2018-07-14 22:14:08 +08:00
Micooz
7be5bbe780 src: reduce memory usage for multiplexing 2018-07-14 21:37:13 +08:00
Micooz
d608255ddd core: fix connection status 2018-07-07 11:21:03 +08:00
Micooz
1d852ee514 core: decouple mux stuff from pipe 2018-07-07 10:23:19 +08:00
Micooz
ea224f052b src: move speed-tester.js to utils/ 2018-07-03 15:06:09 +08:00
Micooz
e96a304659 core: check inbound writable before using it 2018-07-02 20:01:54 +08:00
Micooz
d223c7b002 core: refactor multiplexing 2018-06-24 13:30:03 +08:00
Micooz
a9ec378a42 core: refactor server creation 2018-06-17 18:29:39 +08:00
Micooz
79882e1421 core,test: fix multiplxing for wss and h2 2018-06-17 14:31:26 +08:00
Micooz
c0312b4837 src: refactor PRESET_FAILED handling 2018-06-16 22:23:13 +08:00
Micooz
07e3e73426 src: rename "remoteInfo" to "sourceAddress" 2018-06-16 20:18:21 +08:00
Micooz
9c3cf648e8 Merge branch 'master' into feature-http2-transport
* master: (39 commits)
  docs: update
  package: bump to v3.3.1
  bin: should delete more items in simple mode
  docs: add examples
  transports: set handshake timeout of ws to 10s
  lib: regen
  config: fix new URL() default port issue
  lint: fix
  package: upgrade eslint to v5.2.0
  docs: add "Test Using curl"
  docs: update
  src: add client side https proxy support
  package: upgrade winston to v3.0.0
  build: keep comments in lib/*.js
  ci: change NEXT_VERSION to 3.3.1
  docs: update
  lib: regen
  package: bump to v3.3.0
  docs: update
  transports,test: add "wss" transport
  ...

# Conflicts:
#	src/core/config.js
2018-06-15 23:12:07 +08:00
Micooz
ad934bf6c6 config: fix new URL() default port issue 2018-06-13 22:34:22 +08:00
Micooz
142f8f5d77 src: add client side https proxy support 2018-06-13 20:52:18 +08:00
Micooz
c42c618095 transports,test: add "wss" transport 2018-06-12 18:05:56 +08:00
Micooz
4e4addff55 config: remove "https" from supported client proxy protocol 2018-06-12 17:48:55 +08:00
Micooz
a6b877dd10 bin,src,test: add "tls_cert_self_signed" 2018-06-12 17:47:52 +08:00
Micooz
74ea2eb09f src,test: websocket now support pathname 2018-06-10 15:06:23 +08:00
Micooz
a706f42f7d WIP: http2 transport 2018-05-06 18:34:41 +08:00
Micooz
be9dd7adcc core: minor refactor 2018-05-06 18:32:31 +08:00
Micooz
84381b24bf core: add speed-tester, fix speed measurement 2018-05-06 10:07:36 +08:00
Micooz
2733305df9 hub: add _udpCleanerTimer 2018-05-05 15:51:13 +08:00
Micooz
0642d97c35 core: refactor 2018-05-04 22:09:06 +08:00
Micooz
1c5247db1c hub: set a timer to prune udp relays 2018-05-04 22:05:47 +08:00
Micooz
5435494ac3 src: remove preset.js, implement _write() in IPreset 2018-05-02 21:20:00 +08:00
Micooz
b7db7374c2 core/hub: patch server.getConnections for ws 2018-04-22 18:49:50 +08:00
Micooz
ee61845b48 core/preset: inline createPreset() 2018-04-21 21:14:44 +08:00
Micooz
1e8bcbe8a7 core,proxies: use WHATWG URL api instead of legacy URL api 2018-04-21 14:11:00 +08:00
Micooz
1c2c6b9eb8 proxies,test: support http basic authorization 2018-04-21 12:20:12 +08:00
Micooz
7d2cc6a5f4 src: support socks4(a), socks5 username/password authorization 2018-04-20 23:48:49 +08:00
Micooz
18a91d3b61 presets,test: remove "auto-conf" preset 2018-04-15 21:45:10 +08:00
Micooz
6d392d845c core/preset: inject resolveTargetAddress() to preset instance 2018-04-15 20:34:28 +08:00
Micooz
805bf7fb9f core: add Pipe::initTargetAddress() and remove calling onNotified() 2018-04-15 19:58:58 +08:00
Micooz
65dd04ca75 core: fix sequence between calling .on() and .init() of relay 2018-04-11 14:37:44 +08:00
Micooz
c3ead00197 core: bubble "_error" and "_connect" events up to Hub 2018-04-09 21:35:38 +08:00
Micooz
b1366fd7fe core: remove performance.js 2018-04-09 15:42:48 +08:00
Micooz
6802e21536 src/core: put removeAllListeners() to right place 2018-04-07 14:32:26 +08:00
Micooz
742988e5c1 core/tracker: add setSourceAddress(host, port) 2018-04-07 14:27:49 +08:00
Micooz
bbc1ce990c core/config: remove colorize() from logger 2018-03-29 19:18:49 +08:00
Micooz
d4a79dd564 core/pipe: log error stack 2018-03-29 19:17:24 +08:00
Micooz
2f429de44a package: upgrade winston and winston-daily-rotate-file to v3.x, restrict log_path to be a file 2018-03-18 12:50:38 +08:00
Micooz
05b5e120f9 core/hub: add getConnections(), getTotalRead(), getTotalWritten() and getPerformance() 2018-03-11 19:09:10 +08:00
Micooz
627325503c core: add performance.js 2018-03-11 19:03:40 +08:00
Micooz
830f0a0dcc core/hub: start udp server only when local protocol is "socks" or "socks5" 2018-03-03 14:51:53 +08:00
Micooz
85c197f316 core/relay: remove unused function hasListener() 2018-03-02 15:22:21 +08:00
Micooz
d80630635c core/tracker: avoid putting duplicate target address in this._tracks 2018-03-02 14:33:08 +08:00
Micooz
2b49b9f8a8 core/relay: include target address in tracker's abstract when using multiplexing 2018-03-02 14:29:18 +08:00
Micooz
15be66a6ee src: decrease error rate of multiplexing 2018-03-01 13:07:02 +08:00
Micooz
88d0ddc28a core/config: expose getLogFilePath() 2018-02-22 21:11:33 +08:00
Micooz
98d26c3feb core/pipe: fix presets getter 2018-02-22 21:04:45 +08:00