Skip to content

Commit 41c0fb1

Browse files
committed
Merge branch 'develop', version 0.9.8
2 parents 3794685 + 1f2130f commit 41c0fb1

File tree

8 files changed

+19
-6
lines changed

8 files changed

+19
-6
lines changed

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
0.9.8 (2016-06-19)
2+
* Fix OTA support bug in shadowsocks (report by @defia)
3+
* Fix WeChat image url problem (by @breath-co2 @haha1903)
4+
* Fix connection reset detection (by @fgid)
5+
6+
0.9.7 (2016-05-04)
7+
* Support shadowsocks OTA
8+
19
0.9.6 (2015-06-07)
210
* Reload config by sending SIGUSR1 on Unix system
311
* Load blocked/direct/stat file from same directory as rc file by default

README-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
COW is a HTTP proxy to simplify bypassing the great firewall. It tries to automatically identify blocked websites and only use parent proxy for those sites.
44

5-
Current version: 0.9.7 [CHANGELOG](CHANGELOG)
5+
Current version: 0.9.8 [CHANGELOG](CHANGELOG)
66
[![Build Status](https://travis-ci.org/cyfdecyf/cow.png?branch=master)](https://travis-ci.org/cyfdecyf/cow)
77

88
## Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COW 是一个简化穿墙的 HTTP 代理服务器。它能自动检测被墙网
44

55
[English README](README-en.md).
66

7-
当前版本:0.9.7 [CHANGELOG](CHANGELOG)
7+
当前版本:0.9.8 [CHANGELOG](CHANGELOG)
88
[![Build Status](https://travis-ci.org/cyfdecyf/cow.png?branch=master)](https://travis-ci.org/cyfdecyf/cow)
99

1010
**欢迎在 develop branch 进行开发并发送 pull request :)**

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
)
1717

1818
const (
19-
version = "0.9.7"
19+
version = "0.9.8"
2020
defaultListenAddr = "127.0.0.1:7777"
2121
defaultEstimateTarget = "example.com"
2222
)

http.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ func ParseRequestURIBytes(rawurl []byte) (*URL, error) {
306306
port = "443"
307307
}
308308
}
309-
309+
// Fixed wechat image url bug, url like http://[::ffff:183.192.196.102]/mmsns/lVxxxxxx
310+
host = strings.TrimSuffix(strings.TrimPrefix(host, "[::ffff:"), "]")
311+
hostport = net.JoinHostPort(host, port)
310312
return &URL{hostport, host, port, host2Domain(host), path}, nil
311313
}
312314

install-cow.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
version=0.9.7
3+
version=0.9.8
44

55
arch=`uname -m`
66
case $arch in

pac.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ function host2Domain(host) {
116116
function FindProxyForURL(url, host) {
117117
if (url.substring(0,4) == "ftp:")
118118
return direct;
119+
if (host.substring(0,7) == "::ffff:")
120+
return direct;
119121
if (host.indexOf(".local", host.length - 6) !== -1) {
120122
return direct;
121123
}

proxy_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ package main
55
import (
66
"net"
77
"syscall"
8+
"strings"
89
)
910

1011
func isErrConnReset(err error) bool {
1112
if ne, ok := err.(*net.OpError); ok {
12-
return ne.Err == syscall.ECONNRESET
13+
return strings.Contains(ne.Err.Error(), syscall.ECONNRESET.Error())
1314
}
1415
return false
1516
}

0 commit comments

Comments
 (0)