mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-11 15:33:31 -07:00
remove last use of "&*"
This no longer works as a terse way of copying heap allocated objects. Fixes #93.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user