用4.0做代理,在Android模拟器中打不开https网页
- Dominant language
- JavaScript
- Stars
- 7.9k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
不知道是哪里出了问题。我是把anyproxy作为模块使用,代码如下:
const Anyproxy = require('anyproxy');
const options = {
port: 8001,
rule: require('./rule.js'),
webInterface:{
enable: true,
webPort: 8002,
wsPort: 8003,
},
dangerouslyIgnoreUnauthorized: true,
// throttle: 100000, //默认不限速
forceProxyHttps: true,
silent: false,
}
proxyServer = new Anyproxy.ProxyServer(options);
proxyServer.on('ready', () => {
console.log('Proxy started.');
});
proxyServer.on('error', (e) => {
console.log('::ERROR::' + e);
});
proxyServer.start();
process.on('SIGINT', ()=>{
try {
proxyServer && proxyServer.close();
} catch(e) {
console.error(e);
}
process.exit();
});
process.on('exit', (code) => {
if (code > 0) {
console.error('AnyProxy is about to exit with code: ' + code);
}
process.exit();
});
Plese fill the template when you reporting a new issue, thanks!
#### Which platform are you running AnyProxy
Android模拟器模拟手机环境android4.2.2
#### The version of the AnyProxy
Anyproxy4.0beta12
#### Your expected behavior of AnyProxy
Android模拟器浏览器可以打开https页面,比如:https://www.baidu.com
#### The actual behavior of AnyProxy
在浏览器里访问https://www.baidu.com,会弹出“连接问题”提示:无法建立安全连接。
注:在换用3.10版本时,可以正常访问。
#### The log of the error
日志只有两行
[AnyProxy Log][2017-05-16 09:29:03]: received https CONNECT request www.baidu.com
[AnyProxy Log][2017-05-16 09:29:03]: will forward to local https server
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the supplied Anyproxy.ProxyServer options and rule.js, then reproduce the HTTPS CONNECT failure on an Android 4.2.2 emulator using AnyProxy 4.0beta12 and compare it with 3.10. Use the two reported proxy log entries to trace where forwarding diverges; done means https://www.baidu.com opens successfully through the proxy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100