remove last use of "&*"
This no longer works as a terse way of copying heap allocated objects. Fixes #93.
This commit is contained in:
parent
4d018d5081
commit
5af24b728a
1 changed files with 2 additions and 1 deletions
|
@ -188,7 +188,8 @@ func (a *Announce) BuildPeer(t *Torrent) {
|
|||
if a.HasIPv4() && a.HasIPv6() {
|
||||
a.PeerV4 = a.Peer
|
||||
a.PeerV4.Endpoint = a.IPv4
|
||||
a.PeerV6 = &*a.Peer
|
||||
peer6 := *a.Peer
|
||||
a.PeerV6 = &peer6
|
||||
a.PeerV6.Endpoint = a.IPv6
|
||||
} else if a.HasIPv4() {
|
||||
a.PeerV4 = a.Peer
|
||||
|
|
Loading…
Add table
Reference in a new issue