grayscott
grayscott
func (r *Reply) WriteTo(w io.Writer) (int64, error) { var n int i, err := w.Write([]byte{r.Ver, r.Rep, r.Rsv, r.Atyp}) n = n + i if err != nil { return int64(n),...
you write associate ack data in three time, client will read loss data
func (r *Reply) WriteTo(w io.Writer) (int64, error) { var n int buffer := bytes.NewBuffer([]byte{r.Ver, r.Rep, r.Rsv, r.Atyp}) buffer.Write(r.BndAddr) buffer.Write(r.BndPort) i, err := w.Write(buffer.Bytes()) n = n + i if err...
this is change function
but the result is not that on my pc and if you socket set so_nodelay flag the result is separate
 this is the tcpconnect description
so that you three times to write socket will send three packages in network
could you give me privilege to push the code, there has two to fault with udp proxy
