-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: multi-resolver querying and http client calls
This change resolves two key bugs: 1. All HTTP requests to detect a lancache heartbeat were incorrectly utilising the system resolver, we now utilise an HTTP transport with the appropriate resolver. 2. Works around a current Go limitation with Windows where all requests would utilise the system resolver even if attempting to manually override, we now use a Pure Go dns client library to make and parse said requests.
- Loading branch information
Showing
3 changed files
with
82 additions
and
17 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 |
---|---|---|
|
@@ -17,6 +17,9 @@ const ( | |
|
||
testPrefix = "lancachetest." | ||
wildcardPrefix = "*." | ||
|
||
portHTTP = ":80" | ||
portDNS = ":53" | ||
) | ||
|
||
var ( | ||
|
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