fix log
This commit is contained in:
parent
dc640846ea
commit
2e77076e68
2
socks.go
2
socks.go
@ -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
4
ss.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user