Fixes: #17158
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
string getGeoForLua(const std::string& ip, int qaint)
{
+ ReadLock rl(&GeoIPBackend::s_state_lock);
GeoIPInterface::GeoIPQueryAttribute qa((GeoIPInterface::GeoIPQueryAttribute)qaint);
try {
const Netmask addr{ip};
bool publishDomainKey(const ZoneName& name, unsigned int keyId) override;
bool unpublishDomainKey(const ZoneName& name, unsigned int keyId) override;
-private:
static ReadWriteLock s_state_lock;
+private:
void initialize();
string format2str(string format, const Netmask& addr, GeoIPNetmask& gl, const GeoIPDomain& dom);
bool d_dnssec{};