ntop / ipt_geofence

Geographical host protection for Linux/FreeBSD
GNU Affero General Public License v3.0
101 stars 16 forks source link

Implements blacklists reloading #17

Closed frenzis01 closed 2 years ago

frenzis01 commented 2 years ago

Resolves #10. Every X seconds (5 minutes by default) a thread which reads again the whole config file is deployed, but only if there isn't another one currently active. Every time it wakes from the select() loop, the main thread checks whether a new Configuration instance is ready (i.e. the thread has finished its work), and when it is swaps its (old) instance with the new one and calls join() on the thread. Minor fixes are included.

lucaderi commented 2 years ago

The idea is good, probably requires some cleanup. Merging.