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.
ec91a6db05
- ReconfigureDNS wasn't returning the old servers; made it void instead (the Apple code can just store a copy of the original upstream servers instead). - Reconfiguring DNS reset the unbound context but didn't replace it, so a Down()/Up() would crash. - Simplify Resolver() destructor to just call Down(), and make it final just so that no one tries to inherit from us (so that calling a virtual function from the destructor is safe). - Rename CancelPendingQueries() to Down(); the former cancelled but also shut down the object, so the name seemed a bit misleading. - Rename SetInternalState in Resolver_Base to ResetResolver, so that we aren't conflicting with ResetInternalState from Endpoint (which was a problem because TunEndpoint inherited from both; it could be resolved through the different argument type if we removed the default, but that seems gross). - Make Resolver use a bare unbound context pointer rather than a shared_ptr; since Resolver (now) entirely manages it already we don't need an extra management layer, and it saves a bunch of `.get()`s. |
2 years ago | |
---|---|---|
.. | ||
android | 3 years ago | |
apple | 2 years ago | |
config | 2 years ago | |
consensus | 2 years ago | |
constants | 2 years ago | |
crypto | 2 years ago | |
dht | 2 years ago | |
dns | 2 years ago | |
ev | 2 years ago | |
exit | 2 years ago | |
handlers | 2 years ago | |
iwp | 2 years ago | |
link | 2 years ago | |
linux | 2 years ago | |
messages | 2 years ago | |
net | 2 years ago | |
path | 2 years ago | |
peerstats | 2 years ago | |
quic | 2 years ago | |
router | 2 years ago | |
routing | 2 years ago | |
rpc | 2 years ago | |
service | 2 years ago | |
simulation | 3 years ago | |
tooling | 2 years ago | |
util | 2 years ago | |
vpn | 2 years ago | |
win32 | 2 years ago | |
CMakeLists.txt | 2 years ago | |
app.xml | 6 years ago | |
bootstrap.cpp | 2 years ago | |
bootstrap.hpp | 3 years ago | |
context.cpp | 2 years ago | |
endpoint_base.cpp | 3 years ago | |
endpoint_base.hpp | 2 years ago | |
lokinet_shared.cpp | 2 years ago | |
nodedb.cpp | 2 years ago | |
nodedb.hpp | 3 years ago | |
pow.cpp | 2 years ago | |
pow.hpp | 2 years ago | |
profiling.cpp | 3 years ago | |
profiling.hpp | 2 years ago | |
router_contact.cpp | 2 years ago | |
router_contact.hpp | 2 years ago | |
router_id.cpp | 2 years ago | |
router_id.hpp | 2 years ago | |
router_version.cpp | 3 years ago | |
router_version.hpp | 2 years ago |