This commit is contained in:
jdl 2025-01-15 08:45:01 +01:00
parent 970490b17b
commit 6e7a2456b2
2 changed files with 1 additions and 3 deletions

View File

@ -25,7 +25,7 @@ func sendLocalDiscovery(conn *net.UDPConn) {
buf2 = make([]byte, bufferSize) buf2 = make([]byte, bufferSize)
) )
for range time.Tick(32 * time.Second) { for range time.Tick(16 * time.Second) {
signed := buildLocalDiscoveryPacket(buf1, buf2) signed := buildLocalDiscoveryPacket(buf1, buf2)
if _, err := conn.WriteToUDP(signed, multicastAddr); err != nil { if _, err := conn.WriteToUDP(signed, multicastAddr); err != nil {
log.Printf("Failed to write multicast UDP packet: %v", err) log.Printf("Failed to write multicast UDP packet: %v", err)

View File

@ -347,8 +347,6 @@ func (s *stateClient) OnAck(msg controlMsg[ackPacket]) {
s.staged.Up = true s.staged.Up = true
s.logf("Got ack.") s.logf("Got ack.")
s.publish() s.publish()
} else {
// TODO: What????
} }
// Store possible public address if we're not a public node. // Store possible public address if we're not a public node.