1 Star 0 Fork 0

evlon/dangshixuexi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
proxyserver.js 929 Bytes
一键复制 编辑 原始数据 按行查看 历史
Your Name 提交于 2021-07-11 11:52 . 增加 airtest
const fs = require('fs');
const path = require('path');
const cmd = require('node-cmd');
function main(args) {
// process.env.ANYPROXY_HOME = this.config.proxyServer.certsPath;
// if(!fs.existsSync(this.config.proxyServer.certsPath)){
// fs.mkdirSync(this.config.proxyServer.certsPath,{recursive:true});
// }
let options = {
type: 'http',
port: 8001,
rule: require("./anyproxy-rule"),
webInterface: {
enable: true
},
wsIntercept: true,
forceProxyHttps: false,
dangerouslyIgnoreUnauthorized: false,
silent: false
};
const ProxyServer = require('./anyproxy/proxy').ProxyServer
let proxyServer = new ProxyServer(options);
proxyServer.on('ready', () => {
console.log('proxy server ready.');
});
proxyServer.start();
process.on('SIGINT', function () {
proxyServer.close();
console.log('Exit now!');
});
}
module.exports.startServer = main;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/evlon/yqdszsjs-people.git
git@gitee.com:evlon/yqdszsjs-people.git
evlon
yqdszsjs-people
dangshixuexi
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385