Skip to content

Commit

Permalink
Merge branch 'develop', version 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Jun 19, 2016
2 parents 3794685 + 1f2130f commit 41c0fb1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
@@ -1,3 +1,11 @@
0.9.8 (2016-06-19)
* Fix OTA support bug in shadowsocks (report by @defia)
* Fix WeChat image url problem (by @breath-co2 @haha1903)
* Fix connection reset detection (by @fgid)

0.9.7 (2016-05-04)
* Support shadowsocks OTA

0.9.6 (2015-06-07)
* Reload config by sending SIGUSR1 on Unix system
* Load blocked/direct/stat file from same directory as rc file by default
Expand Down
2 changes: 1 addition & 1 deletion README-en.md
Expand Up @@ -2,7 +2,7 @@

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.

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

## Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@ COW 是一个简化穿墙的 HTTP 代理服务器。它能自动检测被墙网

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

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

**欢迎在 develop branch 进行开发并发送 pull request :)**
Expand Down
2 changes: 1 addition & 1 deletion config.go
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
version = "0.9.7"
version = "0.9.8"
defaultListenAddr = "127.0.0.1:7777"
defaultEstimateTarget = "example.com"
)
Expand Down
4 changes: 3 additions & 1 deletion http.go
Expand Up @@ -306,7 +306,9 @@ func ParseRequestURIBytes(rawurl []byte) (*URL, error) {
port = "443"
}
}

// Fixed wechat image url bug, url like http://[::ffff:183.192.196.102]/mmsns/lVxxxxxx
host = strings.TrimSuffix(strings.TrimPrefix(host, "[::ffff:"), "]")
hostport = net.JoinHostPort(host, port)
return &URL{hostport, host, port, host2Domain(host), path}, nil
}

Expand Down
2 changes: 1 addition & 1 deletion install-cow.sh
@@ -1,6 +1,6 @@
#!/bin/bash

version=0.9.7
version=0.9.8

arch=`uname -m`
case $arch in
Expand Down
2 changes: 2 additions & 0 deletions pac.go
Expand Up @@ -116,6 +116,8 @@ function host2Domain(host) {
function FindProxyForURL(url, host) {
if (url.substring(0,4) == "ftp:")
return direct;
if (host.substring(0,7) == "::ffff:")
return direct;
if (host.indexOf(".local", host.length - 6) !== -1) {
return direct;
}
Expand Down
3 changes: 2 additions & 1 deletion proxy_unix.go
Expand Up @@ -5,11 +5,12 @@ package main
import (
"net"
"syscall"
"strings"
)

func isErrConnReset(err error) bool {
if ne, ok := err.(*net.OpError); ok {
return ne.Err == syscall.ECONNRESET
return strings.Contains(ne.Err.Error(), syscall.ECONNRESET.Error())
}
return false
}
Expand Down

0 comments on commit 41c0fb1

Please sign in to comment.