Skip to content

Commit bd0a1ae

Browse files
committed
Improve: gofmt -s for shadowsocks.go
1 parent 018a6ba commit bd0a1ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adapters/shadowsocks.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ func serializesSocksAddr(addr *C.Addr) []byte {
9393
case socks.AtypDomainName:
9494
len := uint8(len(addr.Host))
9595
host := []byte(addr.Host)
96-
buf = [][]byte{[]byte{aType, len}, host, port}
96+
buf = [][]byte{{aType, len}, host, port}
9797
case socks.AtypIPv4:
9898
host := addr.IP.To4()
99-
buf = [][]byte{[]byte{aType}, host, port}
99+
buf = [][]byte{{aType}, host, port}
100100
case socks.AtypIPv6:
101101
host := addr.IP.To16()
102-
buf = [][]byte{[]byte{aType}, host, port}
102+
buf = [][]byte{{aType}, host, port}
103103
}
104104
return bytes.Join(buf, []byte(""))
105105
}

0 commit comments

Comments
 (0)