Skip to content

Commit

Permalink
Merge pull request shadowsocks#140 from eycorsican/master
Browse files Browse the repository at this point in the history
fix UDP associate
  • Loading branch information
riobard authored Jul 6, 2019
2 parents 50f3276 + c7fd071 commit 3b10811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func tcpLocal(addr, server string, shadow func(net.Conn) net.Conn, getAddr func(

// UDP: keep the connection until disconnect then free the UDP socket
if err == socks.InfoUDPAssociate {
buf := []byte{}
buf := make([]byte, 1)
// block here
for {
_, err := c.Read(buf)
Expand Down

0 comments on commit 3b10811

Please sign in to comment.