Skip to content

Commit

Permalink
move dot to matchingDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
WGOS committed Feb 5, 2024
1 parent 5ef2bda commit 3be877f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func answerForNodes(domain string) []dns.RR {
var rrs []dns.RR
var nodes = nodes

var swarmDomain = *matchingDomain(domain)
var normDomain = strings.ToLower(domain) + "."
var swarmDomain = *matchingDomain(domain) + "."
var normDomain = strings.ToLower(domain)

if swarmDomain != normDomain {
var subDomain = replaceLast(normDomain, "."+swarmDomain, "")
Expand Down

0 comments on commit 3be877f

Please sign in to comment.