Commit 74bd7228 authored by c1ayy's avatar c1ayy Committed by ginuerzh

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

parent e3533c00
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment