-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…0316) Many domains resolve their hostnames into addresses which depend on the user's location, meaning that to truly exclude an application we also need to exclude their DNS queries. In order to do this correctly, we must make use a nameserver outside the VPN tunnel. Unfortunately, this is difficult, if not impossible to accomplish with a `QDnsLookup` as it often uses in-kernel resolvers and has difficulty with the Windows killswitch. Instead we make use of the c-ares library, which ensures that it can take place in the same process as the socks proxy. --------- Co-authored-by: Naomi Kirby <[email protected]> Co-authored-by: Sebastian Streich <[email protected]>
- Loading branch information
1 parent
2bc2bbe
commit 2515a61
Showing
21 changed files
with
362 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ SHA | |
Serde | ||
SettingsHolder | ||
Speedtest | ||
Stenberg | ||
SwiftyPing | ||
TBD | ||
TODO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# Nothing we need to do here rn. | ||
if(CMAKE_CROSSCOMPILING) | ||
return() | ||
endif() | ||
|
||
|
||
# This Policy will make Cmake respect SET | ||
# over the OPTIONS of sub | ||
cmake_policy(SET CMP0077 NEW) | ||
|
||
include(FetchContent) | ||
|
||
FetchContent_Declare(libcares SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/c-ares") | ||
|
||
# Set options before calling FetchContent_MakeAvailable | ||
set(CARES_STATIC ON CACHE BOOL "Build static c-ares" FORCE) | ||
set(CARES_SHARED OFF CACHE BOOL "Disable shared c-ares" FORCE) | ||
set(CARES_BUILD_TESTS OFF CACHE BOOL "Disable c-ares tests" FORCE) | ||
set(CARES_BUILD_CONTAINER_TESTS OFF CACHE BOOL "Disable c-ares container tests" FORCE) | ||
set(CARES_BUILD_TOOLS OFF CACHE BOOL "Disable c-ares tools" FORCE) | ||
set(CARES_INSTALL OFF CACHE BOOL "Disable c-ares global install" FORCE) | ||
|
||
|
||
FetchContent_MakeAvailable(libcares) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.