Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasen committed Dec 8, 2015
1 parent e0e2508 commit 0fbc89e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,6 @@ Pull request must pass:
- [ ] Improve test coverage to over 90%
- [x] 支持 net/http/pprof
- [x] 支持 HTTP 反向代理 (使用 Header `X-Cipher-Origin`
- [ ] 支持 binary protocol
- [x] 支持 binary protocol
- [ ] 支持更多加密解密算法
- [ ] 支持 consul 服务发现
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func handleConn(c net.Conn) {
// TODO: check if addr is allowed

// Build tunnel
backend, err := net.DialTimeout("tcp", string(addr), 5*time.Second)
backend, err := net.DialTimeout("tcp", string(addr), time.Second*time.Duration(_BackendDialTimeout))
if err != nil {
// handle error
switch err := err.(type) {
Expand Down
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func TestMain(m *testing.M) {

// start listen
os.Setenv("SECRET", string(_secret))
os.Setenv("BACKEND_TIMEOUT", "1")

go main()

Expand Down

0 comments on commit 0fbc89e

Please sign in to comment.