newLisp版17MonIP解析代码
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
17mon.lsp
README.md

README.md

17MonIP for newLisp

17Mon(17mon.cn)IP地址库解析代码

Usage

先从http://tool.17mon.cn/ipdb.html下载最新的IP库文件

> (MonIP:find-ip "8.8.8.8")
("GOOGLE" "GOOGLE" "")
> (MonIP:find-ip "127.0.0.1")
("本机地址" "本机地址" "")
> (MonIP:find-ip "test") ; 如果IP地址格式错误或查询失败,返回nil:
nil

IP库更新

见:http://tool.17mon.cn/ipdb.html