You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transfer send without an explicit IP discovers receivers via a periodic UDP broadcast sent by transfer wait.
Description
pkg/broadcast.go:52 derives the broadcast address as:
ip.To4()[3] =255
This only equals the real broadcast address on /24 networks. On any other prefix length (/16, /23, /26 — common on corporate, Docker and home networks) the packet goes to a wrong address and discovery silently fails — transfer send then blocks forever waiting for a waiter.
Technical requirement
Basic Go networking (net.Interface, *net.IPNet). The mask is already available where the addresses are collected — i.Addrs() returns *net.IPNet which carries it.
Expect
compute broadcast = ip | ^mask from the actual IPNet mask per address,
keep skipping link-local/loopback/non-IPv4 as today,
Activity