shadowsocks / go-shadowsocks2

Modern Shadowsocks in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDP NAT map is leaking~

linkerlin opened this issue · comments

nm := newNATmap(config.UDPTimeout)

There is no change to remove key-values from nm.
And the keys are only made from remote addresses. If there are two clients which send-receive udp packet from the same remote address, it will be a problem.

nm.Add(raddr, c, pc, false)

commented

Incorrect. Read the code again.