Fix #20 : better network anti-loop system

/cc @mandubian