Skip to content

Commit

Permalink
Add a comment explaining the client location cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Schwartz committed May 19, 2020
1 parent 6b97239 commit 8c69318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shadowsocks/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ func (s *udpService) Stop() error {
}

type natentry struct {
conn net.PacketConn
conn net.PacketConn
// We store the client location in the NAT map to avoid recomputing it
// for every outbound packet in a UDP-based connection.
clientLocation string
}

Expand Down

0 comments on commit 8c69318

Please sign in to comment.