telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit 46fd248b92e874bb17e9e111b0039c9e724dc811
parent 99bd921946623d2ac0bbf052cd549bd49a0748a6
Author: Frederic Cambus <fred@statdns.com>
Date:   Sat,  3 Mar 2018 17:22:49 +0100

Convert ASN to numeric value

Diffstat:
Mtelize.conf | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/telize.conf b/telize.conf @@ -133,6 +133,11 @@ server { payload.longitude = tonumber(payload.longitude) end + -- Convert ASN to numeric value + if payload.asn ~= nil then + payload.asn = tonumber(payload.asn) + end + local json = cjson.encode(payload) if callback ~= "" then