Improve: clean code

This commit is contained in:
Dreamacro
2018-08-12 16:18:58 +08:00
parent fc4f119049
commit ebe1cee6dc
7 changed files with 97 additions and 83 deletions

View File

@ -75,5 +75,5 @@ func handleConn(conn net.Conn) {
peeked, _ = br.Peek(br.Buffered())
}
tun.Add(adapters.NewHttp(hostName, peeked, method != http.MethodConnect, conn))
tun.Add(adapters.NewHTTP(hostName, peeked, method != http.MethodConnect, conn))
}