chore: remove trailing dots

This commit is contained in:
skidoodle 2024-07-05 08:06:01 +02:00
parent d6a163628e
commit a579c69595

View file

@ -253,7 +253,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
d := dataStruct{
IP: ip.String(),
Hostname: hostname[0],
Hostname: strings.TrimSuffix(hostname[0], "."),
ASN: fmt.Sprintf("%d", asnRecord.AutonomousSystemNumber),
Organization: asnRecord.AutonomousSystemOrganization,
Country: cityRecord.Country.IsoCode,