mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f8d5e106a0
The `const sockaddr*` conversion was returning a pointer to the sockaddr_in6, but with its family set to AF_INET, so the receiving code would have treated interpreting the result as a sockaddr_in pointer -- but it isn't, and trying to get the IPv4 from the mis-reinterpreted sockaddr_in6 fails; this then prevented uvw UDP binding (which uses the sockaddr* operator) from working. This changes it to always leave the family value at the proper value and using the ipv6_is_mapped_ipv4 check to determine when we have (and should return) a pointer to the sockaddr_in rather than the sockaddr_in6. Also fixes toString() to compare the full prefix instead of just bytes 10 and 11. |
3 years ago | |
---|---|---|
.. | ||
android | 4 years ago | |
config | 3 years ago | |
consensus | 4 years ago | |
constants | 4 years ago | |
crypto | 3 years ago | |
dht | 3 years ago | |
dns | 3 years ago | |
ev | 3 years ago | |
exit | 3 years ago | |
handlers | 3 years ago | |
hook | 4 years ago | |
iwp | 3 years ago | |
link | 3 years ago | |
linux | 4 years ago | |
messages | 3 years ago | |
net | 3 years ago | |
path | 3 years ago | |
peerstats | 3 years ago | |
router | 3 years ago | |
routing | 4 years ago | |
rpc | 3 years ago | |
service | 3 years ago | |
simulation | 3 years ago | |
tooling | 3 years ago | |
util | 3 years ago | |
vpn | 3 years ago | |
win32 | 4 years ago | |
CMakeLists.txt | 3 years ago | |
app.xml | 6 years ago | |
bootstrap.cpp | 4 years ago | |
bootstrap.hpp | 4 years ago | |
context.cpp | 3 years ago | |
nodedb.cpp | 3 years ago | |
nodedb.hpp | 3 years ago | |
pow.cpp | 4 years ago | |
pow.hpp | 4 years ago | |
profiling.cpp | 4 years ago | |
profiling.hpp | 4 years ago | |
router_contact.cpp | 3 years ago | |
router_contact.hpp | 3 years ago | |
router_id.cpp | 3 years ago | |
router_id.hpp | 3 years ago | |
router_version.cpp | 4 years ago | |
router_version.hpp | 4 years ago | |
testnet.c | 5 years ago |