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 | |
---|---|---|
.. | ||
CMakeLists.txt | 2 years ago | |
DNSTrampoline.h | 2 years ago | |
DNSTrampoline.m | 2 years ago | |
PacketTunnelProvider.m | 2 years ago | |
context.hpp | 3 years ago | |
context_wrapper.cpp | 2 years ago | |
context_wrapper.h | 2 years ago | |
route_manager.cpp | 2 years ago | |
route_manager.hpp | 2 years ago | |
vpn_interface.cpp | 2 years ago | |
vpn_interface.hpp | 2 years ago | |
vpn_platform.cpp | 3 years ago | |
vpn_platform.hpp | 2 years ago |