mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
show version info
This commit is contained in:
parent
37c3ea316f
commit
df33805e17
@ -1,3 +1,7 @@
|
|||||||
|
12 Jan 2015: anyproxy 3.0.4:
|
||||||
|
|
||||||
|
* show anyproxy version by --version
|
||||||
|
|
||||||
12 Jan 2015: anyproxy 3.0.3:
|
12 Jan 2015: anyproxy 3.0.3:
|
||||||
|
|
||||||
* Bugfix: https throttle
|
* Bugfix: https throttle
|
||||||
|
5
bin.js
5
bin.js
@ -3,9 +3,12 @@
|
|||||||
var program = require('commander'),
|
var program = require('commander'),
|
||||||
proxy = require("./proxy.js"),
|
proxy = require("./proxy.js"),
|
||||||
color = require('colorful'),
|
color = require('colorful'),
|
||||||
fs = require("fs");
|
fs = require("fs"),
|
||||||
|
packageInfo = require("./package.json");
|
||||||
|
|
||||||
|
|
||||||
program
|
program
|
||||||
|
.version(packageInfo.version)
|
||||||
.option('-u, --host [value]', 'hostname for https proxy, localhost for default')
|
.option('-u, --host [value]', 'hostname for https proxy, localhost for default')
|
||||||
.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')
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "3.0.3",
|
"version": "3.0.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": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user