Commit Graph

600 Commits

Author SHA1 Message Date
Micooz
c0312b4837 src: refactor PRESET_FAILED handling 2018-06-16 22:23:13 +08:00
Micooz
20f634713c proxies: fix a vulnerability in log output 2018-06-16 22:20:19 +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
138636da69 transports: set handshake timeout of ws to 10s 2018-06-15 10:33:28 +08:00
Micooz
ad934bf6c6 config: fix new URL() default port issue 2018-06-13 22:34:22 +08:00
Micooz
b7798e1e60 lint: fix 2018-06-13 22:33:15 +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
55f6f59607 proxies: fix a security bug of authorization bypass 2018-06-10 15:10:23 +08:00
Micooz
74ea2eb09f src,test: websocket now support pathname 2018-06-10 15:06:23 +08:00
Micooz
b4abe01b20 presets: refactor index.js 2018-06-02 09:55:11 +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
3e875b1ced transports: refactor 2018-05-04 22:09:30 +08:00
Micooz
0642d97c35 core: refactor 2018-05-04 22:09:06 +08:00
Micooz
133bf07ffc presets: remove actions.js, move to src/constants.js 2018-05-04 22:08:36 +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
db73f0dc57 lib: regen 2018-04-28 11:12:50 +08:00
Micooz
b54914a6b7 presets: use uint64ToBuffer() instead of numberToBuffer() 2018-04-26 13:48:55 +08:00
Micooz
cf83eeebb4 utils,test: add uint64ToBuffer() 2018-04-26 13:48:13 +08:00
Micooz
748ebe9aaa presets: use increment* helpers to increase nonce 2018-04-25 22:49:13 +08:00
Micooz
26041f5659 utils,test: add incrementLE() and increamentBE() 2018-04-25 22:47:03 +08:00
Micooz
d126b3c4db presets: add chacha20-ietf support for ss-stream-cipher 2018-04-25 22:46:20 +08:00
Micooz
b7db7374c2 core/hub: patch server.getConnections for ws 2018-04-22 18:49:50 +08:00
Micooz
8157a19ca0 proxies/http: bug fix 2018-04-22 18:37:29 +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
55ad5aca3a package,transports: upgrade ws from v3.3.3 to v5.1.1 2018-04-17 23:25:31 +08:00
Micooz
18a91d3b61 presets,test: remove "auto-conf" preset 2018-04-15 21:45:10 +08:00
Micooz
100f1fe48d presets: use this.resolveTargetAddress() instead of broadcast(...) 2018-04-15 20:34:59 +08:00
Micooz
6d392d845c core/preset: inject resolveTargetAddress() to preset instance 2018-04-15 20:34:28 +08:00
Micooz
d1dedef8e6 presets: use onInitTargetAddress() instead of onNotified() to get target address 2018-04-15 19:59:39 +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
2753075765 eslint: enable "no-undef" and "object-curly-spacing" 2018-03-30 12:09:48 +08:00
Micooz
5d0fc5ac6e src: fix crush when onConnected() is triggered after ss-base destroyed 2018-03-29 19:42:23 +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