Fix bug: incorrect fail count length leading to crash.

This commit is contained in:
Chen Yufei
2013-03-18 14:34:50 +08:00
parent c9ba71f2bd
commit 34cc103ac6
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
0.6.2 (not released)
* Support multiple shadowsocks server
0.6.1 (2013-03-14)
* Avoid using too much memory to hold http requests

View File

@@ -455,7 +455,7 @@ func checkConfig() {
for len(config.ShadowMethod) < len(config.ShadowSocks) {
config.ShadowMethod = append(config.ShadowMethod, "")
}
parentProxyFailCnt = make([]int, len(config.ShadowSocks))
parentProxyFailCnt = make([]int, len(parentProxyCreator))
}
func mkConfigDir() (err error) {