fix: require a handshake for announcement messages
This commit is contained in:
parent
438e76dfb8
commit
48ef3e3a2a
|
@ -34,7 +34,7 @@ func NewAnnounceRequest(peer net.Peer, peersToSend []net.Peer) *AnnouncePeers {
|
||||||
func NewAnnouncePeers() *AnnouncePeers {
|
func NewAnnouncePeers() *AnnouncePeers {
|
||||||
ap := &AnnouncePeers{peer: nil, connectionUris: nil}
|
ap := &AnnouncePeers{peer: nil, connectionUris: nil}
|
||||||
|
|
||||||
ap.SetRequiresHandshake(false)
|
ap.SetRequiresHandshake(true)
|
||||||
|
|
||||||
return ap
|
return ap
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue