Skip to content

Commit

Permalink
fix: remove trailing dot from srv record hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sch8ill committed Jan 30, 2024
1 parent b3312c1 commit 4cafd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion address/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (a *Address) ResolveSRV() error {
if len(records) > 0 {
srvRecord := records[0]
a.SRVPort = srvRecord.Port
a.SRVHost = srvRecord.Target
a.SRVHost, _ = strings.CutSuffix(srvRecord.Target, ".")
a.SRV = true
}

Expand Down

0 comments on commit 4cafd45

Please sign in to comment.