cleanup ips detection

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>