From 5af24b728ace0e112e7f3a4ca6ee1715adb65bd7 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 21 Jan 2016 11:37:37 -0500 Subject: [PATCH] remove last use of "&*" This no longer works as a terse way of copying heap allocated objects. Fixes #93. --- tracker/models/models.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tracker/models/models.go b/tracker/models/models.go index 5d777d0..5db3baa 100644 --- a/tracker/models/models.go +++ b/tracker/models/models.go @@ -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