2
0
mirror of synced 2025-02-24 14:48:27 +00:00

Fix Client.receiveSkeys

Fixes #114. Loop variables in Go are ****ed.
This commit is contained in:
Matt Joiner 2016-09-21 21:04:52 +10:00
parent 0c9c3d35cf
commit 3b5f123645

View File

@ -826,7 +826,7 @@ func maybeReceiveEncryptedHandshake(rw io.ReadWriter, skeys [][]byte) (ret io.Re
func (cl *Client) receiveSkeys() (ret [][]byte) { func (cl *Client) receiveSkeys() (ret [][]byte) {
for ih := range cl.torrents { for ih := range cl.torrents {
ret = append(ret, ih[:]) ret = append(ret, append([]byte(nil), ih[:]...))
} }
return return
} }