This commit is contained in:
rui.zheng 2016-10-06 16:30:48 +08:00
parent dc640846ea
commit 2e77076e68
2 changed files with 3 additions and 3 deletions

View File

@ -494,7 +494,7 @@ func (s *Socks5Server) bindOn(addr string) {
glog.V(LINFO).Infof("[socks5-bind] %s >-< %s", s.conn.RemoteAddr(), pconn.RemoteAddr())
return
case err := <-pipe():
glog.V(LWARNING).Infof("[socks5-bind] %s -> %s : %s", s.conn.RemoteAddr(), addr, err)
glog.V(LWARNING).Infof("[socks5-bind] %s -> %s : %v", s.conn.RemoteAddr(), addr, err)
ln.Close()
return
}

4
ss.go
View File

@ -65,7 +65,7 @@ func (s *ShadowServer) Serve() {
glog.V(LINFO).Infof("[ss] %s >-< %s", s.conn.RemoteAddr(), addr)
}
// This func are copied from shadowsocks library with some modification.
// This function is copied from shadowsocks library with some modification.
func (s *ShadowServer) getRequest() (host string, ota bool, err error) {
// buf size should at least have the same size with the largest possible
// request size (when addrType is 3, domain name has at most 256 bytes)
@ -138,7 +138,7 @@ const (
// copyOta copies data from src to dst with ota verification.
//
// This func are copied from shadowsocks library with some modification.
// This function is copied from shadowsocks library with some modification.
func (s *ShadowServer) copyOta(dst net.Conn, src *ss.Conn) (int64, error) {
// sometimes it have to fill large block
buf := make([]byte, LargeBufferSize)