Include IP in decimal format

Fixes #19
This commit is contained in:
Martin Polden
2016-07-06 23:44:33 +02:00
parent cfb86fe124
commit 6a9202851d
4 changed files with 44 additions and 11 deletions

View File

@ -80,7 +80,8 @@ $ http ifconfig.co/json
"city": "{{ .City }}",{{ end }}{{ if .IsLookupCountryEnabled }}
"country": "{{ .Country }}",{{ end }}{{ if .IsLookupAddrEnabled }}
"hostname": "{{ .Hostname }}",{{ end }}
"ip": "{{ .IP }}"
"ip": "{{ .IP }}",
"ip_decimal": {{ .IPDecimal }}
}
# or set Accept header: