fix: require a handshake for announcement messages

This commit is contained in:
Derrick Hammer 2024-03-10 06:46:18 -04:00
parent 438e76dfb8
commit 48ef3e3a2a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func NewAnnounceRequest(peer net.Peer, peersToSend []net.Peer) *AnnouncePeers {
func NewAnnouncePeers() *AnnouncePeers {
ap := &AnnouncePeers{peer: nil, connectionUris: nil}
ap.SetRequiresHandshake(false)
ap.SetRequiresHandshake(true)
return ap
}