Check IP before adding to knownnodes #1065
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-19#1065
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "exceptions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I rewrited
helper_bootstrap
a bit to ensure that only valid IP addresses will be added to knownnodes.The problem is in last elements of this list:
You don't see it because of
except:
without exception type in src/helper_bootstrap.py#L52I want to rewrite it as well to move the lookups into asyncore when using SOCKS. Then I can get rid of SocksiPi. The asyncore SOCKS resolving hasn't been tested but it probably works, just there isn't a way to communicate with it. Maybe through two queues like sql thread? Perhaps I also need to add some error handling.
Also, the onion bootstrap IP should be added even if not on tor, in order to allow bootstrapping when on a transparent proxy.