Skip to content

Commit 9e2dc44

Browse files
author
Delta-Kronecker
committed
Add GeoIP country detection with flag emoji remarks and per-country subscription files
- Add GeoSettings config (ip-api.com batch API with rate limiting) - Create src/geoip.go: DNS resolution cache, batch GeoIP lookup, country-to-flag emoji conversion - Replace @DeltaKroneckerGithub remark with country flag emoji (e.g. US, DE) - Write per-country subscription files (config/countries/{cc}.txt and .yaml) - Add 'By Country' table to README with links to per-country files - Configs that fail GeoIP lookup fall back to default remark
1 parent 008e71d commit 9e2dc44

5 files changed

Lines changed: 600 additions & 9 deletions

File tree

data/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,12 @@
4444
"config_name": "proxy",
4545
"main_file": "config/all_configs.txt",
4646
"protocols_dir": "config/protocols"
47+
},
48+
"geo": {
49+
"api_url": "http://ip-api.com/batch",
50+
"timeout_ms": 5000,
51+
"max_retries": 2,
52+
"batch_size": 100,
53+
"batch_delay_ms": 1200
4754
}
4855
}

0 commit comments

Comments
 (0)