30 lines
969 B
Markdown
30 lines
969 B
Markdown
# iplookup
|
|
|
|
Go implementation of [geoipweb](https://git.rznet.fr/tchivert/geoipweb).
|
|
|
|
This is the code that now powers [iplookup.fr](https://iplookup.fr)
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
Usage of ./iplookup:
|
|
-b string Bind to address (default "0.0.0.0")
|
|
-p int Port to listen on (default 8080)
|
|
-n string Name of the application (default "iplookup.fr")
|
|
-d string Domain name (default "iplookup.fr")
|
|
-s string Short domain name (default "iplk.fr")
|
|
-c string Path to the GeoIP database
|
|
-a string Path to the GeoASN database
|
|
-t int Cache TTL in seconds (default 300)
|
|
-m int Max number of entries in cache (default 2048)
|
|
```
|
|
|
|
## Acknowledgements
|
|
|
|
- [geoipupdate](https://github.com/maxmind/geoipupdate)
|
|
- [geoip2-golang](https://github.com/oschwald/geoip2-golang)
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License. See the [LICENSE](https://git.rznet.fr/tchivert/iplookup/src/branch/main/LICENSE) file for more information.
|