diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d95e2..5180a7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.1.2] - 2018-03-31 +### Fixed +- Bug introduced in v.1.1 that made tld's disappear in terminal output + ## [1.1.1] - 2018-03-31 ### Added - Arm and arm64 architectures diff --git a/dnsmorph.go b/dnsmorph.go index d856a5f..230b75e 100644 --- a/dnsmorph.go +++ b/dnsmorph.go @@ -109,10 +109,10 @@ func processInput(input string) (sanitizedDomain, tld string) { } else { if *includeSubdomains == false { tldPlusOne, _ := publicsuffix.EffectiveTLDPlusOne(input) - tld, _ := publicsuffix.PublicSuffix(tldPlusOne) + tld, _ = publicsuffix.PublicSuffix(tldPlusOne) sanitizedDomain = strings.Replace(tldPlusOne, "."+tld, "", -1) } else if *includeSubdomains == true { - tld, _ := publicsuffix.PublicSuffix(input) + tld, _ = publicsuffix.PublicSuffix(input) sanitizedDomain = strings.Replace(input, "."+tld, "", -1) } }