add basic support for websocket proxy

This commit is contained in:
砚然
2017-12-12 20:07:06 +08:00
parent e54fb23daa
commit 60bc1498ae
24 changed files with 808 additions and 149 deletions

View File

@@ -271,5 +271,6 @@ module.exports = {
printHilite,
isCommonReqEqual,
parseUrlQuery,
stringSimilarity
stringSimilarity,
isArrayEqual: _isDeepEqual
};

View File

@@ -13,6 +13,7 @@ const DEFAULT_OPTIONS = {
webPort: 8002, // optional, port for web interface
wsPort: 8003, // optional, internal port for web socket
},
wsIntercept: true,
throttle: 10000, // optional, speed limit in kb/s
forceProxyHttps: true, // intercept https as well
dangerouslyIgnoreUnauthorized: true,