This commit is contained in:
Sudo-Ivan
2024-12-31 13:49:05 -06:00
parent 613ceddb0b
commit 28d46921d3
9 changed files with 445 additions and 53 deletions

View File

@@ -644,7 +644,7 @@ func (t *Transport) handleAnnouncePacket(data []byte, iface common.NetworkInterf
// Use identity package's GetRandomHash
announceHash := identity.GetRandomHash()
// Use interface name in announce handling
if iface != nil {
t.HandleAnnounce(destHash, identityData, appData, announceHash)
@@ -789,3 +789,9 @@ func (l *Link) HandleResource(resource interface{}) bool {
return false
}
}
func (t *Transport) Start() error {
t.mutex.Lock()
defer t.mutex.Unlock()
return nil
}