Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Jul 20, 2020
1 parent 85460ac commit 9d0cc6f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ However the C version has too few functions, and the js version of Sukka is too
- Chunzhen qqip database
- ZX ipv6 database
- Geoip2 city database
- IPIP free database
- Pipeline support
- Interactive query
- Offline query
Expand Down Expand Up @@ -232,27 +233,44 @@ $ nali update
2020/07/17 12:54:05 已将最新的纯真 IP 库保存到本地 /root/.nali/qqwry.dat
```

### Use Geoip2 database
### Use other database

Set environment variables `NALI_DB`

supported database:

- Geoip2 `['geoip', 'geoip2', 'geo']`
- Chunzhen `['chunzhen', 'qqip', 'qqwry']`
- IPIP `['ipip', 'ipipfree', 'ipip.net']`

#### Windows

##### Use geoip db

```
set NALI_DB=geoip
```

##### Use ipip db

```
set NALI_DB=ipip
```

#### Linux

##### Use geoip db

```
export NALI_DB=geoip
```

##### Use ipip db

```
export NALI_DB=ipip
```

## Thanks

- [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml)
Expand All @@ -262,6 +280,8 @@ export NALI_DB=geoip
- [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service)
- [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang)
- [CDN provider数据库](https://github.com/SukkaLab/cdn)
- [IPIP数据库](https://www.ipip.net/product/ip.html)
- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go)
- [Cobra CLI库](https://github.com/spf13/cobra)
- [Nali-cli](https://github.com/SukkaW/nali-cli)

Expand Down
19 changes: 19 additions & 0 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
- 纯真 IPv4 离线数据库
- ZX IPv6 离线数据库
- Geoip2 城市数据库 (可选)
- IPIP 数据库 (可选)
- CDN 服务提供商查询
- 支持管道处理
- 支持交互式查询
Expand Down Expand Up @@ -248,16 +249,32 @@ $ nali update

#### Windows平台

##### 使用geoip数据库

```
set NALI_DB=geoip
```

##### 使用ipip数据库

```
set NALI_DB=ipip
```

#### Linux平台

##### 使用geoip数据库

```
export NALI_DB=geoip
```

##### 使用ipip数据库

```
export NALI_DB=ipip
```

## 感谢列表

- [纯真QQIP离线数据库](http://www.cz88.net/fox/ipdat.shtml)
Expand All @@ -267,6 +284,8 @@ export NALI_DB=geoip
- [Geoip2 city数据库](https://www.maxmind.com/en/geoip2-precision-city-service)
- [geoip2-golang解析器](https://github.com/oschwald/geoip2-golang)
- [CDN provider数据库](https://github.com/SukkaLab/cdn)
- [IPIP数据库](https://www.ipip.net/product/ip.html)
- [IPIP数据库解析](https://github.com/ipipdotnet/ipdb-go)
- [Cobra CLI库](https://github.com/spf13/cobra)
- [Nali-cli](https://github.com/SukkaW/nali-cli)

Expand Down

0 comments on commit 9d0cc6f

Please sign in to comment.