updated some names
This commit is contained in:
parent
85a7d0bb3a
commit
74543480f1
@ -103,9 +103,9 @@ func (ip *IP) GetGeoIP() (err error) {
|
|||||||
|
|
||||||
ip.City = city.City.Names[defaultLanguage]
|
ip.City = city.City.Names[defaultLanguage]
|
||||||
ip.Country = city.Country.Names[defaultLanguage]
|
ip.Country = city.Country.Names[defaultLanguage]
|
||||||
ip.Asn = ASN{
|
ip.As = AS{
|
||||||
ID: int(asn.AutonomousSystemNumber),
|
Number: int(asn.AutonomousSystemNumber),
|
||||||
Name: asn.AutonomousSystemOrganization,
|
Org: asn.AutonomousSystemOrganization,
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
@ -117,10 +117,10 @@ type IP struct {
|
|||||||
Hostname string `json:"hostname"`
|
Hostname string `json:"hostname"`
|
||||||
City string `json:"city"`
|
City string `json:"city"`
|
||||||
Country string `json:"country"`
|
Country string `json:"country"`
|
||||||
Asn ASN `json:"asn"`
|
As AS `json:"as"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ASN struct {
|
type AS struct {
|
||||||
ID int `json:"id"`
|
Number int `json:"number"`
|
||||||
Name string `json:"name"`
|
Org string `json:"org"`
|
||||||
}
|
}
|
||||||
|
@ -23,13 +23,13 @@
|
|||||||
<td>{{ "{{" }} dip.country {{ "}}" }}</td>
|
<td>{{ "{{" }} dip.country {{ "}}" }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>ASN id</td>
|
<td>AS number</td>
|
||||||
<td>{{ "{{" }} dip.asn.id {{ "}}" }}</td>
|
<td>{{ "{{" }} dip.as.number {{ "}}" }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>ASN name</td>
|
<td>AS name</td>
|
||||||
<td>
|
<td>
|
||||||
{{ "{{" }} dip.asn.name {{ "}}" }}
|
{{ "{{" }} dip.as.org {{ "}}" }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user