hbc007 / panunlock Goto Github PK
View Code? Open in Web Editor NEW解除pandownload限制启动,电脑和已root安卓都可以用
解除pandownload限制启动,电脑和已root安卓都可以用
第一次直接启动 flask 很正常 电脑版能使用
nginx设置如下
server {
listen 80;
server_name pandownload.com pandownw.linesoft.top;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:20415;
}
}
@app.route("/set/r/40")
"title": "** LYHNMSL**", "message": "**What\'s your problem**",
@app.route("/api/latest")
"detail":"字符串"
再次启动flask发现 电脑客户端 接受数据失败(2) 且flask接收不到 api/init/请求
将所有文件还原 重启系统 重启nginx flask还是不能解决
打开nginx日志 发现499 错误
112.***.**.** - - [01/May/2020:13:**:59 +0800] "GET /api/init?clienttype=0&referral=&t=1588311719&version=2.2.2 HTTP/1.1" 499 0 "-" "PanDownload/2.2.2" "-"
正常应为
112.***.**.** - - [01/May/2020:13:**:** +0800] "GET /api/init?clienttype=0&referral=&t=1588311119&version=2.2.2 HTTP/1.1" 200 950 "-" "PanDownload/2.2.2" "-"
故在nginx配置添加proxy_ignore_client_abort on;
解决499错误
nginx日志为
"GET /api/init?clienttype=0&referral=&t=1588312099&version=2.2.2 HTTP/1.1" 200 0 "-" "PanDownload/2.2.2" "-"
正常为200 950 现在变成了200 0
flask 日志能接收到请求
127.0.0.1 - - [01/May/2020 14:13:26] "GET /api/init?clienttype=0&referral=&t=1588313606&version=2.2.2 HTTP/1.0" 200 -
看不出什么问题
重启系统 重启nginx 将panUnlock-master文件夹删除 再重新上传原版 运行flask 还是
接受数据失败(2) 卸载重装flask还是一样
重下 pandownload客户端还是接受数据失败(2)
# | 结果 | 协议 | 主机 | URL | 主体 | 缓存 | 内容类型 | 进程 | 注释 | 自定义
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
8 | 403 | HTTP | pandownload.com | /api/init?clienttype=0&referral=&t=1588314003&version=2.2.2 | 597 | no-cache | text/html | proxifier:3852
nginx 200 0 后面的0说明响应为空 没有回复 但是flask显示又有回复
通过浏览器直接访问/api/init?clienttype=0&referral=&t=1588314241&version=2.2.2 也能得到json
如果大佬能明白怎么回事 希望给个解答哈
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.