mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-20 06:56:02 +00:00
chore: remove useless laddr from ListenUDP
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user