Change Kad to work better in small LANs
If Kad detects it is running on a LAN (only LAN IPs in the routing table), it
will assume being open and not behind a NAT/Router without trying to verify
(which would fail in a small LAN), and also doesn't enforce several security
features like flood detection for LAN IPs. Now even a small Kad LAN of 2 nodes
works well without any setup issues.
To create such a Kad LAN, make sure all clients have Preferences->Security->
"Always filter LAN IPs" disabled, delete the existing nodes.dat if necessary,
go to the Kad dialog and enter the IP+Port of one other client (which is either
connected or in connecting mode for Kad) to the bootstrap box.
22 files changed: