Fix ban timestamp handling when reading banlist from client. This has probably been...
authorMartin Johansson <martin@fatbob.nu>
Tue, 9 Sep 2014 10:39:57 +0000 (12:39 +0200)
committerFelix Morgner <felix.morgner@gmail.com>
Mon, 1 Dec 2014 09:33:48 +0000 (10:33 +0100)
commit230ab44eae2e9379a093078b028923b7477f4425
tree003b222ceab492f640832fd24a17edfc883f53d2
parent4af71f1db277478476c9edad4cca59e2c7b367f6
Fix ban timestamp handling when reading banlist from client. This has probably been broken from the start.
Don't use timers since this broke when changing the timer clock source from gettimeofday() -> clock_gettime(). Instead use regular Unix timestamps.
Mimic the way regular Murmur matches ban address with masks. Unclear if this works for at least IPv6.
src/ban.c
src/ban.h