You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**No clippy suppression**: Do not use `#[allow(clippy::...)]` to suppress warnings. Fix the underlying issue instead (e.g., reduce arguments, refactor code). If a suppression is truly unavoidable, discuss it in the PR.
RustNet supports GeoIP lookups to show country codes for remote IPs. To enable this, install the [GeoLite2](https://dev.maxmind.com/geoip/geolite2-free-geolocation-data) databases using MaxMind's `geoipupdate` tool (requires a free [MaxMind account](https://www.maxmind.com/en/geolite2/signup)):
693
+
694
+
### macOS (Homebrew)
695
+
696
+
```bash
697
+
brew install geoipupdate
698
+
# Edit the config with your MaxMind account credentials:
699
+
# $(brew --prefix)/etc/GeoIP.conf
700
+
geoipupdate
701
+
```
702
+
703
+
Databases are installed to `$(brew --prefix)/share/GeoIP/`.
704
+
705
+
### Ubuntu/Debian
706
+
707
+
```bash
708
+
sudo apt-get install geoipupdate
709
+
# Edit /etc/GeoIP.conf with your MaxMind account credentials
710
+
sudo geoipupdate
711
+
```
712
+
713
+
Databases are installed to `/usr/share/GeoIP/`.
714
+
715
+
### Fedora/RHEL
716
+
717
+
```bash
718
+
sudo dnf install geoipupdate
719
+
# Edit /etc/GeoIP.conf with your MaxMind account credentials
720
+
sudo geoipupdate
721
+
```
722
+
723
+
Databases are installed to `/usr/share/GeoIP/`.
724
+
725
+
### Arch Linux
726
+
727
+
```bash
728
+
sudo pacman -S geoipupdate
729
+
# Edit /etc/GeoIP.conf with your MaxMind account credentials
730
+
sudo geoipupdate
731
+
```
732
+
733
+
Databases are installed to `/usr/share/GeoIP/`.
734
+
735
+
### FreeBSD
736
+
737
+
```bash
738
+
pkg install geoipupdate
739
+
# Edit /usr/local/etc/GeoIP.conf with your MaxMind account credentials
740
+
sudo geoipupdate
741
+
```
742
+
743
+
Databases are installed to `/usr/local/share/GeoIP/`.
744
+
745
+
### Manual Specification
746
+
747
+
If your databases are in a non-standard location, specify them directly:
0 commit comments