Skip to content

Commit 663b539

Browse files
committed
Format socks5 udp request comments
1 parent 5e142e7 commit 663b539

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

daze.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -455,16 +455,16 @@ func (l *Locale) ServeSocks5UDP(ctx *Context, cli io.ReadWriteCloser) error {
455455
// +----+------+------+----------+----------+----------+
456456
// | 2 | 1 | 1 | Variable | 2 | Variable |
457457
// +----+------+------+----------+----------+----------+
458-
// The fields in the UDP request header are:
459-
// * RSV Reserved X'0000'
460-
// * FRAG Current fragment number
461-
// * ATYP address type of following addresses:
462-
// * IP V4 address: X'01'
463-
// * DOMAINNAME: X'03'
464-
// * IP V6 address: X'04'
465-
// * DST.ADDR desired destination address
466-
// * DST.PORT desired destination port
467-
// * DATA user data
458+
// The fields in the UDP request header are:
459+
// * RSV Reserved 0x0000
460+
// * FRAG Current fragment number
461+
// * ATYP Address type of following addresses:
462+
// * IP V4 address: 0x01
463+
// * DOMAINNAME: 0x03
464+
// * IP V6 address: 0x04
465+
// * DST.ADDR Desired destination address
466+
// * DST.PORT Desired destination port
467+
// * DATA User data
468468
doa.Doa(buf[0] == 0x00)
469469
doa.Doa(buf[1] == 0x00)
470470
// Implementation of fragmentation is optional; an implementation that does not support fragmentation MUST drop

0 commit comments

Comments
 (0)