Exemple #1
0
func InitGeoIPDB() {
	if !config.Constants.GeoIP {
		return
	}

	var err error
	geodb, err = geoip2.FromBytes(assets.MustAsset("assets/geoip.mmdb"))

	if err != nil {
		logrus.Fatal(err.Error())
	}
}
Exemple #2
0
func LoadLobbySettingsFromFile(fileName string) error {
	data := assets.MustAsset(fileName)
	return LoadLobbySettings(data)
}