Skip to content

Commit

Permalink
net: Fix misleading comment for Discover
Browse files Browse the repository at this point in the history
All network addresses are being iterated over and added, not just the first one per interface.
  • Loading branch information
laanwj committed Apr 28, 2024
1 parent 7766dd2 commit a68fed1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ struct CSerializedNetMsg {
/**
* Look up IP addresses from all interfaces on the machine and add them to the
* list of local addresses to self-advertise.
* The loopback interface is skipped and only the first address from each
* interface is used.
* The loopback interface is skipped.
*/
void Discover();

Expand Down

0 comments on commit a68fed1

Please sign in to comment.