-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Validity checks #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validity checks #2796
Conversation
| }{ | ||
| {"127.0.0.1:8080", true, true, false}, | ||
| {"ya.ru:80", true, false, true}, | ||
| {"123fdc2a9bce5f2ef01e907a1d6a16548ee5a245@ya.ru:80", true, false, true}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add these as new vectors, instead of removing the old vector? (Unless the old test didn't make sense for some reason)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚬 📺
p2p/netaddress.go
Outdated
| // For IPv4 these are either a 0 or all bits set address. For IPv6 a zero | ||
| // address or one that matches the RFC3849 documentation address format. | ||
| func (na *NetAddress) Valid() bool { | ||
| if na.Local() == false { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if na.Local() == false { | |
| if !na.Local() { |
Codecov Report
@@ Coverage Diff @@
## develop #2796 +/- ##
===========================================
+ Coverage 62.3% 62.38% +0.08%
===========================================
Files 212 212
Lines 17210 17215 +5
===========================================
+ Hits 10722 10739 +17
+ Misses 5588 5577 -11
+ Partials 900 899 -1
|
Co-Authored-By: zmanian <zaki@manian.org>
Co-Authored-By: zmanian <zaki@manian.org>
|
See: #2797 |
Here is one a approach to the peers without IDs in the address book.