Skip to content

Commit

Permalink
v0.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesfsp committed Nov 2, 2021
1 parent 08131c5 commit 5d9ab58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Load config from Config file, and from env vars. Use viper for that
- Automatically alocates a random port, if the specified one is in-use

## [0.1.12] - 2021-11-02
### Changed
- Better error message

## [0.1.11] - 2021-11-02
### Added
- Added support to specify multiple DNS server.
Expand Down
8 changes: 3 additions & 5 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,9 @@ func setupDNS(mutex *sync.RWMutex, dnsURIs []string) error {
finalError = err

if err != nil {
logger.Get().Tracelnf("%v - %s. Error: %v. Trying another DNS - if any",
ErrFailedToDialToDNS,
parsedDNSURI,
err,
)
errMsg := fmt.Sprintf("dial to DNS @ %s", parsedDNSURI.String())

logger.Get().Tracelnf(customerror.NewFailedToError(errMsg, "", err).Error())
} else {
logger.Get().Tracelnf("Request resolved by DNS @ %s", parsedDNSURI)

Expand Down

0 comments on commit 5d9ab58

Please sign in to comment.