let users assign the port for web socket in AnyProxy cli #131

This commit is contained in:
OttoMao 2017-02-26 20:57:03 +08:00
parent 591a821834
commit 26a05e8c5c
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
26 Feb 2016: AnyProxy 3.10.4:
* let users assign the port for web socket in AnyProxy cli
19 Sep 2016: AnyProxy 3.10.3: 19 Sep 2016: AnyProxy 3.10.3:
* fix the cert path issue with Windows * fix the cert path issue with Windows

2
bin.js
View File

@ -15,6 +15,7 @@ program
.option('-t, --type [value]', 'http|https, http for default') .option('-t, --type [value]', 'http|https, http for default')
.option('-p, --port [value]', 'proxy port, 8001 for default') .option('-p, --port [value]', 'proxy port, 8001 for default')
.option('-w, --web [value]' , 'web GUI port, 8002 for default') .option('-w, --web [value]' , 'web GUI port, 8002 for default')
.option('-e, --ws [value]' , 'web socket port, 8003 for default')
.option('-f, --file [value]', 'save request data to a specified file, will use in-memory db if not specified') .option('-f, --file [value]', 'save request data to a specified file, will use in-memory db if not specified')
.option('-r, --rule [value]', 'path for rule file,') .option('-r, --rule [value]', 'path for rule file,')
.option('-g, --root [value]', 'generate root CA') .option('-g, --root [value]', 'generate root CA')
@ -90,6 +91,7 @@ if(program.clear){
dbFile : program.file, dbFile : program.file,
throttle : program.throttle, throttle : program.throttle,
webPort : program.web, webPort : program.web,
socketPort : program.ws,
rule : ruleModule, rule : ruleModule,
disableWebInterface : false, disableWebInterface : false,
setAsGlobalProxy : program.global, setAsGlobalProxy : program.global,

View File

@ -1,6 +1,6 @@
{ {
"name": "anyproxy", "name": "anyproxy",
"version": "3.10.3", "version": "3.10.4",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.", "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js", "main": "proxy.js",
"bin": { "bin": {