forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectd: clean up add_gossip loops.
This contained cut & paste code, and it wasn't clear to me that the first loop included DNS entries with IPv6 entries. Instead, allow the iterator to take multiple types, and use a switch statement so compile will break as new types are added. Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
1b6ff0b
commit ddb7916
Showing
1 changed file
with
48 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters