chore: remove useless laddr from ListenUDP

This commit is contained in:
Toby
2022-01-23 17:40:59 -08:00
parent 841810d6ca
commit 858d36cf30
4 changed files with 6 additions and 6 deletions

View File

@@ -264,7 +264,7 @@ func (c *serverClient) handleTCP(stream quic.Stream, host string, port uint16) {
func (c *serverClient) handleUDP(stream quic.Stream) {
// Like in SOCKS5, the stream here is only used to maintain the UDP session. No need to read anything from it
conn, err := c.Transport.ListenUDP(nil)
conn, err := c.Transport.ListenUDP()
if err != nil {
_ = struc.Pack(stream, &serverResponse{
OK: false,