mirror of
https://github.com/skidoodle/ipinfo.git
synced 2025-02-15 08:29:17 +01:00
chore: remove trailing dots
This commit is contained in:
2
main.go
2
main.go
@@ -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,
|
||||
|
Reference in New Issue
Block a user