cow icon indicating copy to clipboard operation
cow copied to clipboard

有的网站使用cow还是打不开

Open xixiranran opened this issue 8 years ago • 19 comments

我之前使用自动切换列表https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt http://jixiuf.github.io/blog/%E7%94%A8cow-%E7%BF%BB%E5%A2%99%E7%9A%84%E9%85%8D%E7%BD%AE/ 这个网站如果使用自动切换列表,那么是这样的: image 如果是使用cow,那么是这样的: image 如果是全局代理,那么才正常: image

我 已经发现好几个网站都是这样了,但是出现第二张图片那也就说明其实全局是支持的,不过不能直接使用cow打开这种网站,该怎么解决呢?谢谢。

xixiranran avatar Aug 22 '16 02:08 xixiranran

http://jixiuf.github.io/about/ 还有这个页面,不过是使用自动切换的列表还是使用cow都是下面这种界面。 image

xixiranran avatar Aug 22 '16 02:08 xixiranran

我上面说的所有都是下面这种配置 image

有时候 使用这种配置反而又都出现无法访问,反而我使用下面这种配置感觉好一点, image

这种配置遇见上面那类网站都会出现 image

xixiranran avatar Aug 22 '16 02:08 xixiranran

可以试试删除 stat.txt 文件,或者查找下这个文件内容,找到这个域名编辑掉。 或者直接设置强制连接。

Jason [email protected] 於 2016年8月22日 週一 上午10:33寫道:

[image: image] https://cloud.githubusercontent.com/assets/19594338/17842264/92d9908c-6853-11e6-9069-1e9bc7167770.png 我上面说的所有都是下面这种配置 [image: image] https://cloud.githubusercontent.com/assets/19594338/17842265/9aca58f8-6853-11e6-9923-52b86fea111f.png

有时候 使用这种配置反而又都出现无法访问,反而我使用下面这种配置感觉好一点, [image: image] https://cloud.githubusercontent.com/assets/19594338/17842276/b333ded2-6853-11e6-8e53-02b19704ef92.png

这种配置遇见上面那类网站都会出现 [image: image] https://cloud.githubusercontent.com/assets/19594338/17842279/be07fe4c-6853-11e6-8707-92f40ffceca3.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cyfdecyf/cow/issues/492#issuecomment-241302621, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuZtZFUqTxUkdjceLRtoRigBTfxavamks5qiQpugaJpZM4Jpdft .

DrayChou avatar Aug 22 '16 13:08 DrayChou

谢谢你的回复,我现在用meow已经没有出现这种情况了,算是对cow的改良吧。

xixiranran avatar Aug 22 '16 13:08 xixiranran

了解。 这种问题应该是 cow 监测的时候有返回连接正常的问题。 目前还不清楚为什么,希望是个例。

Jason [email protected] 於 2016年8月22日 週一 下午9:26寫道:

谢谢你的回复,我现在用meow已经没有出现这种情况了,算是对cow的改良吧。

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/cyfdecyf/cow/issues/492#issuecomment-241411629, or mute the thread https://github.com/notifications/unsubscribe-auth/AAuZtdxsYDGRYX3SWi3a5S0S_pMTSvmtks5qiaOFgaJpZM4Jpdft .

DrayChou avatar Aug 22 '16 13:08 DrayChou

希望是个例吧,不过我今天还是遇见好几个网页都出现这种网页了。

xixiranran avatar Aug 22 '16 13:08 xixiranran

如果合并 https://github.com/cyfdecyf/cow/pull/465 这个代码,应该可以解决这个问题

Kisesy avatar Aug 25 '16 00:08 Kisesy

你有对于win的修复这个问题的成品吗?我也不会合并什么代码

xixiranran avatar Aug 25 '16 03:08 xixiranran

cow.tar.gz

只有 Win32 版。。

Kisesy avatar Aug 25 '16 04:08 Kisesy

谢谢你,请问你这个是你自己重新编译过的吗?这个不是0.9.6版本的吧?因为他们说0.9.6版的没有这个问题,还有这个32位的在32位和64位系统上都可以使用对吧。 太谢谢你了,之前我因为cow的这个问题还有有些网站的图片有问题,所以使用meow,但是我发现meow对于一些俄文域名的网站打不开, https://github.com/cyfdecyf/cow/issues/495 不知道是什么原因,但是你刚才发给我的这个版本我试过了发现可以解决上面的所有问题,谢谢你。

xixiranran avatar Aug 25 '16 04:08 xixiranran

额,这个问题存在时间很长了,一直没解决,我就自学了Go语言,自己解决了,我是这样写的

func isErrConnReset(err error) bool {
    // fmt.Printf("calling isErrConnReset for err type: %v Error() %s\n",
    // reflect.TypeOf(err), err.Error())
    if ne, ok := err.(*net.OpError); ok {
        // fmt.Println("isErrConnReset net.OpError.Err type:", reflect.TypeOf(ne))
        if se, seok := ne.Err.(*os.SyscallError); seok {
            return se.Err == syscall.WSAECONNRESET || se.Err == syscall.ECONNRESET
        }
        if errno, enok := ne.Err.(syscall.Errno); enok {
            // I got these number by print. Only tested on XP.
            // fmt.Printf("isErrConnReset errno: %d\n", errno)
            return errno == 64 || errno == 10054
        }
    }
    return false
}

跟上面我提到的那个代码不一样,不过效果应该是一样的。。。 这个还合并了支持https的代码 https://github.com/cyfdecyf/cow/pull/372 , 所以支持 proxy = https://xxx格式的代理

我用Go1.7 更新了下编译,速度应该是更快了 cow.tar.gz

Kisesy avatar Aug 25 '16 04:08 Kisesy

image 这儿不是本来就有这个https吗?有什么不一样呢?

xixiranran avatar Aug 25 '16 05:08 xixiranran

你看的是 meow 啊,cow 不支持

Kisesy avatar Aug 25 '16 05:08 Kisesy

哦,搞错了,那你觉得meow好还是cow好呢?我怎么觉得cow有点影响网速呢?你能解决meow那个问题吗?https://github.com/cyfdecyf/cow/issues/495

xixiranran avatar Aug 25 '16 05:08 xixiranran

所以如果使用你刚才给我的那个的话,我就可以再配置文件里面加上像meow那个支持https的两行配置代码了是吧?

xixiranran avatar Aug 25 '16 05:08 xixiranran

image 我真的觉得cow有点影响网速,每次打开youtube的时候都会这样等待几秒,(除非之前访问过这个网页,他就会存在于stat文件里面,下次就会快一点)使用meow的时候就不会,但是meow有我上面说的那个对于一些俄文域名代理不了的问题,有谁能解决meow的这个问题吗?

xixiranran avatar Aug 25 '16 06:08 xixiranran

哪里有meow的地址?我想看看

tywg001 avatar Jan 05 '17 05:01 tywg001

https://github.com/renzhn/MEOW @tywg001

xixiranran avatar Jan 05 '17 05:01 xixiranran

@Jason4774 多谢

tywg001 avatar Jan 05 '17 06:01 tywg001