Skip to content

Commit 0284fa3

Browse files
committed
2025-02-27 20:11:08
1 parent 920b670 commit 0284fa3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

daze.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,21 +411,21 @@ func (l *Locale) ServeSocks5TCP(ctx *Context, cli io.ReadWriteCloser, dst string
411411
// ServeSocks5UDP serves socks5 UDP protocol.
412412
func (l *Locale) ServeSocks5UDP(ctx *Context, cli io.ReadWriteCloser) error {
413413
var (
414-
bndAddr *net.UDPAddr
415-
bndPort uint16
416-
bnd *net.UDPConn
417414
appAddr *net.UDPAddr
418-
appSize int
419415
appHeadSize int
420416
appHead []byte
417+
appSize int
418+
bndAddr *net.UDPAddr
419+
bndPort uint16
420+
bnd *net.UDPConn
421+
buf = make([]byte, 2048)
422+
b bool
423+
cpl = map[string]io.ReadWriteCloser{}
421424
dstHost string
422425
dstPort uint16
423426
dst string
424-
srv io.ReadWriteCloser
425-
b bool
426-
cpl = map[string]io.ReadWriteCloser{}
427-
buf = make([]byte, 2048)
428427
err error
428+
srv io.ReadWriteCloser
429429
)
430430
bndAddr = doa.Try(net.ResolveUDPAddr("udp", "127.0.0.1:0"))
431431
bnd = doa.Try(net.ListenUDP("udp", bndAddr))

0 commit comments

Comments
 (0)