cyfdecyf / cow

HTTP proxy written in Go. COW can automatically identify blocked sites and use parent proxies to access.
BSD 2-Clause "Simplified" License
8.45k stars 1.61k forks source link

Google Play Market 中 app 下载不成功 #169

Closed snachx closed 10 years ago

snachx commented 10 years ago

twitter, google之类的都能正常访问 google.com已经加到blocked,Play Market能正常访问打开,但是下载app不成功,直接使用shadowsocks-android能够成功下载,架设cow的机器用了chinadns自建dns,地址解析应该没问题。

log如下:

[DEBUG] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55635) connected, total 2 clients [>>>>>] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55635) request CONNECT android.clients.google.com:443 CONNECT android.clients.google.com:443 HTTP/1.1 User-Agent: unused/0 (cancro KTU84P); gzip Host: android.clients.google.com Connection: keep-alive

[DEBUG] 2014/08/05 10:06:36 connected to: android.clients.google.com:443 via shadowsocks: xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:36 lowest latency proxy xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55634) connected to android.clients.google.com:443 1 concurrent connections [DEBUG] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55634)->srv(android.clients.google.com:443) released read buffer [DEBUG] 2014/08/05 10:06:36 connected to: android.clients.google.com:443 via shadowsocks: xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:36 lowest latency proxy xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55635) connected to android.clients.google.com:443 2 concurrent connections [DEBUG] 2014/08/05 10:06:36 cli(xxx.xxx.xxx.xxx:55635)->srv(android.clients.google.com:443) released read buffer [DEBUG] 2014/08/05 10:06:39 cli(xxx.xxx.xxx.xxx:55638) connected, total 3 clients [>>>>>] 2014/08/05 10:06:42 cli(xxx.xxx.xxx.xxx:55638) request GET android.clients.google.com:80/market/download/Download?packageName=com.runtastic.android.sixpack.lite&versionCode=9012&token=AOTCm0RLS3_O_fv90tB5ERmeeByuEwEXXVzoIsc0ub502U1HGWQqEGV0reI8yHXBaBDUt0qJFDqA7YmGYGZEJxDifzJSfrOcr9Hxenqq1f2CAJ_S&downloadId=3290453047857300939&gz=1 GET /market/download/Download?packageName=com.runtastic.android.sixpack.lite&versionCode=9012&token=AOTCm0RLS3_O_fv90tB5ERmeeByuEwEXXVzoIsc0ub502U1HGWQqEGV0reI8yHXBaBDUt0qJFDqA7YmGYGZEJxDifzJSfrOcr9Hxenqq1f2CAJ_S&downloadId=3290453047857300939&gz=1 HTTP/1.1 Cookie: MarketDA=11351568367106457257 Host: android.clients.google.com User-Agent: AndroidDownloadManager/4.4.4 (Linux; U; Android 4.4.4; MI 3C Build/KTU84P) Connection: keep-alive

[DEBUG] 2014/08/05 10:06:42 cli(xxx.xxx.xxx.xxx:55638) connPool no conn android.clients.google.com:80 [DEBUG] 2014/08/05 10:06:42 connected to: android.clients.google.com:80 via shadowsocks: xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:42 lowest latency proxy xxx.xxx.xxx:443 [DEBUG] 2014/08/05 10:06:42 cli(xxx.xxx.xxx.xxx:55638) connected to android.clients.google.com:80 1 concurrent connections [<<<<<] 2014/08/05 10:06:43 cli(xxx.xxx.xxx.xxx:55638) response GET android.clients.google.com:80/market/download/Download?packageName=com.runtastic.android.sixpack.lite&versionCode=9012&token=AOTCm0RLS3_O_fv90tB5ERmeeByuEwEXXVzoIsc0ub502U1HGWQqEGV0reI8yHXBaBDUt0qJFDqA7YmGYGZEJxDifzJSfrOcr9Hxenqq1f2CAJ_S&downloadId=3290453047857300939&gz=1 302 Moved Temporarily HTTP/1.1 302 Moved Temporarily Cache-control: no-cache Location: http://r13---sn-nwj7knek.c.android.clients.google.com/market/GetBinary/GetBinary/com.runtastic.android.sixpack.lite/9012/apk_gz?mm=31&ms=au&mt=1407204341&mv=m&mws=yes&expire=1407377178&ipbits=0&ip=0.0.0.0&cp=SmFubmR3R1g6NzA1MzY2MTMyMTMwMjQ5NjI3NDI&sparams=expire,ipbits,ip,q:,cp&signature=DB3E30EFEFE606A975096A3341B8218A8D5EB33A.A999A71D7AC0A002A90F4615165A86E234D80132&key=am3 Pragma: no-cache Content-Type: text/html; charset=UTF-8 Date: Tue, 05 Aug 2014 02:06:18 GMT X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block Server: GSE Alternate-Protocol: 80:quic Transfer-Encoding: chunked Connection: keep-alive Keep-Alive: timeout=15

[DEBUG] 2014/08/05 10:06:43 cli(xxx.xxx.xxx.xxx:55638) connPool put android.clients.google.com:80 [DEBUG] 2014/08/05 10:06:43 connPool android.clients.google.com:80: new channel [DEBUG] 2014/08/05 10:06:48 connPool channel android.clients.google.com:80: put back conn [DEBUG] 2014/08/05 10:06:53 connPool channel android.clients.google.com:80: put back conn [DEBUG] 2014/08/05 10:06:58 connPool channel android.clients.google.com:80: close one conn [DEBUG] 2014/08/05 10:06:58 close connection to android.clients.google.com:80 remains 0 concurrent connections

cyfdecyf commented 10 years ago

整个下载过程都只有访问 google.com 子域名么?指定到 blocked 之后 cow 就不做判断,直接全部使用二级代理了,从 log 看也是正常的。

snachx commented 10 years ago

@cyfdecyf 多谢提醒,特地关掉所有其他程序网络访问权限来查看请求,发现总有连接迅雷api的请求,才发现原来是小米手机MIUI系统好心办坏事,默认开启了迅雷下载引擎,而迅雷不能下Goolge Play的东西再正常不过了,关掉迅雷下载引擎之后,一切正常。