From 44dd14fd9b2dc450fcf1338316e5a0495842ae51 Mon Sep 17 00:00:00 2001 From: netevert Date: Sat, 31 Mar 2018 18:47:07 +0100 Subject: [PATCH] bug fix --- CHANGELOG.md | 4 ++++ dnsmorph.go | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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) } }