mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 16:01:26 +00:00
some code formatting works
This commit is contained in:
parent
20dc7a7b41
commit
0e700a2ff8
@ -9,7 +9,6 @@ var express = require("express"),
|
|||||||
certMgr = require("./certMgr"),
|
certMgr = require("./certMgr"),
|
||||||
logUtil = require("./log");
|
logUtil = require("./log");
|
||||||
|
|
||||||
|
|
||||||
function webInterface(config){
|
function webInterface(config){
|
||||||
var port = config.port,
|
var port = config.port,
|
||||||
wsPort = config.wsPort,
|
wsPort = config.wsPort,
|
||||||
@ -21,7 +20,6 @@ function webInterface(config){
|
|||||||
crtFilePath = certMgr.getRootCAFilePath(),
|
crtFilePath = certMgr.getRootCAFilePath(),
|
||||||
staticDir = path.join(__dirname,'../web');
|
staticDir = path.join(__dirname,'../web');
|
||||||
|
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
res.setHeader("note", "THIS IS A REQUEST FROM ANYPROXY WEB INTERFACE");
|
res.setHeader("note", "THIS IS A REQUEST FROM ANYPROXY WEB INTERFACE");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "anyproxy",
|
"name": "anyproxy",
|
||||||
"version": "3.4.0",
|
"version": "3.4.0-Beta",
|
||||||
"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