diff --git a/peerdiscovery.go b/peerdiscovery.go index 25a8997..21f9374 100644 --- a/peerdiscovery.go +++ b/peerdiscovery.go @@ -200,7 +200,8 @@ func Discover(settings ...Settings) (discoveries []Discovered, err error) { } const ( - maxDatagramSize = 8192 + // https://en.wikipedia.org/wiki/User_Datagram_Protocol#Packet_structure + maxDatagramSize = 66507 ) // Listen binds to the UDP address and port given and writes packets received