Fix: ss: block if server send first(like mysql) (#417)

This commit is contained in:
c1ayy 2019-11-27 18:19:43 +08:00 committed by ginuerzh
parent e3533c0011
commit 74bd722881

5
ss.go
View File

@ -64,9 +64,8 @@ func (c *shadowConnector) Connect(conn net.Conn, addr string, options ...Connect
sc := &shadowConn{
Conn: ss.NewConn(conn, cipher),
}
sc.wbuf.Write(rawaddr) // cache the header
return sc, nil
_, err = sc.Write(rawaddr)
return sc, err
}
type shadowHandler struct {