telize

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

commit b7cef434b26841a9466a268f6bac2882f97fbcfc
parent e81f137776ec0841e2d265b9aaf72b5267d94d0b
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Mon, 18 Aug 2014 23:25:45 +0200

Using dotted notation for ip check

Diffstat:
Mtelize | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/telize b/telize @@ -101,7 +101,7 @@ server { end end - if args["ip"] == "127.0.0.1" then + if args.ip == "127.0.0.1" then ngx.status = ngx.HTTP_BAD_REQUEST ngx.say(cjson.encode({code = 401, message = "Input string is not a valid IP address"})) ngx.exit(ngx.HTTP_OK)