fix typo, update readme and go module name
This commit is contained in:
parent
9bb840d611
commit
bd4bd56c3d
@ -1,13 +1,13 @@
|
||||
# mikrotik-geoipblock
|
||||
# routeros-geoip
|
||||
|
||||
Generate RouterOS Address Lists based on country code.
|
||||
Generate RouterOS Address Lists based on country code. This can be used for creating up to date geo-ip blocking lists which can be loaded into RouterOS.
|
||||
|
||||
```sh
|
||||
# Example usage
|
||||
./mikrotik-geoipblock myAddressList example.json
|
||||
```
|
||||
|
||||
Createa a config file containing the address lists you want to block
|
||||
Create a config file containing the address lists you want to block
|
||||
|
||||
```json
|
||||
{
|
||||
|
2
go.mod
2
go.mod
@ -1,3 +1,3 @@
|
||||
module code.stevenpolley.net/steven/mikrotik-geoipblock
|
||||
module code.stevenpolley.net/steven/routeros-geoip
|
||||
|
||||
go 1.23.0
|
||||
|
2
main.go
2
main.go
@ -37,7 +37,7 @@ func main() {
|
||||
|
||||
// Download up to date geoip CIDR data
|
||||
for i := range countries {
|
||||
fmt.Println("downloading cidr list for country: ", countries[i].Name)
|
||||
fmt.Println("downloading cidr list for country:", countries[i].Name)
|
||||
countries[i].v4Addresses, err = downloadAddressList(countries[i].Url)
|
||||
if err != nil {
|
||||
log.Fatalf("failed to download address list for county'%s': %v", countries[i].Name, err)
|
||||
|
Loading…
Reference in New Issue
Block a user