mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-28 05:46:36 +08:00
3328d3d121
Agent ships without City/Country MMDB in the binary; Docker images COPY databases into data_dir, bare installs seed via download on first start. Server keeps Country-only embed for optional MaxMind control-plane use. Also harden fetch script nonempty check and reject non-file MMDB paths.
14 lines
507 B
Go
14 lines
507 B
Go
// Package geoipdata holds shared GeoIP database filename constants.
|
|
//
|
|
// MaxMind MMDB files are NOT embedded into the agent binary. Docker images
|
|
// COPY them onto the default data paths; bare binary installs seed via download
|
|
// on first start (see geoipupdate).
|
|
package geoipdata
|
|
|
|
const (
|
|
// DefaultMMDBName is the default Country database filename.
|
|
DefaultMMDBName = "GeoLite2-Country.mmdb"
|
|
// DefaultCityMMDBName is the default City database filename.
|
|
DefaultCityMMDBName = "GeoLite2-City.mmdb"
|
|
)
|